Record Class OBJModel.ModelSettings
java.lang.Object
java.lang.Record
net.minecraftforge.client.model.obj.OBJModel.ModelSettings
- Enclosing class:
- OBJModel
public static record OBJModel.ModelSettings(@Nonnull ResourceLocation modelLocation, boolean detectCullableFaces, boolean diffuseLighting, boolean flipV, boolean ambientToFullbright, @Nullable String materialLibraryOverrideLocation)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
The field for theambientToFullbright
record component.private final boolean
The field for thedetectCullableFaces
record component.private final boolean
The field for thediffuseLighting
record component.private final boolean
The field for theflipV
record component.private final String
The field for thematerialLibraryOverrideLocation
record component.private final ResourceLocation
The field for themodelLocation
record component. -
Constructor Summary
ConstructorDescriptionModelSettings
(ResourceLocation modelLocation, boolean detectCullableFaces, boolean diffuseLighting, boolean flipV, boolean ambientToFullbright, String materialLibraryOverrideLocation) Creates an instance of aModelSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theambientToFullbright
record component.boolean
Returns the value of thedetectCullableFaces
record component.boolean
Returns the value of thediffuseLighting
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
flipV()
Returns the value of theflipV
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thematerialLibraryOverrideLocation
record component.Returns the value of themodelLocation
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
modelLocation
The field for themodelLocation
record component. -
detectCullableFaces
private final boolean detectCullableFacesThe field for thedetectCullableFaces
record component. -
diffuseLighting
private final boolean diffuseLightingThe field for thediffuseLighting
record component. -
flipV
private final boolean flipVThe field for theflipV
record component. -
ambientToFullbright
private final boolean ambientToFullbrightThe field for theambientToFullbright
record component. -
materialLibraryOverrideLocation
The field for thematerialLibraryOverrideLocation
record component.
-
-
Constructor Details
-
ModelSettings
public ModelSettings(@Nonnull ResourceLocation modelLocation, boolean detectCullableFaces, boolean diffuseLighting, boolean flipV, boolean ambientToFullbright, @Nullable String materialLibraryOverrideLocation) Creates an instance of aModelSettings
record class.- Parameters:
modelLocation
- the value for themodelLocation
record componentdetectCullableFaces
- the value for thedetectCullableFaces
record componentdiffuseLighting
- the value for thediffuseLighting
record componentflipV
- the value for theflipV
record componentambientToFullbright
- the value for theambientToFullbright
record componentmaterialLibraryOverrideLocation
- the value for thematerialLibraryOverrideLocation
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
modelLocation
Returns the value of themodelLocation
record component.- Returns:
- the value of the
modelLocation
record component
-
detectCullableFaces
public boolean detectCullableFaces()Returns the value of thedetectCullableFaces
record component.- Returns:
- the value of the
detectCullableFaces
record component
-
diffuseLighting
public boolean diffuseLighting()Returns the value of thediffuseLighting
record component.- Returns:
- the value of the
diffuseLighting
record component
-
flipV
public boolean flipV()Returns the value of theflipV
record component.- Returns:
- the value of the
flipV
record component
-
ambientToFullbright
public boolean ambientToFullbright()Returns the value of theambientToFullbright
record component.- Returns:
- the value of the
ambientToFullbright
record component
-
materialLibraryOverrideLocation
Returns the value of thematerialLibraryOverrideLocation
record component.- Returns:
- the value of the
materialLibraryOverrideLocation
record component
-