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
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theambientToFullbrightrecord component.private final booleanThe field for thedetectCullableFacesrecord component.private final booleanThe field for thediffuseLightingrecord component.private final booleanThe field for theflipVrecord component.private final StringThe field for thematerialLibraryOverrideLocationrecord component.private final ResourceLocationThe field for themodelLocationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelSettings(ResourceLocation modelLocation, boolean detectCullableFaces, boolean diffuseLighting, boolean flipV, boolean ambientToFullbright, String materialLibraryOverrideLocation) Creates an instance of aModelSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theambientToFullbrightrecord component.booleanReturns the value of thedetectCullableFacesrecord component.booleanReturns the value of thediffuseLightingrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanflipV()Returns the value of theflipVrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thematerialLibraryOverrideLocationrecord component.Returns the value of themodelLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
modelLocation
The field for themodelLocationrecord component. -
detectCullableFaces
private final boolean detectCullableFacesThe field for thedetectCullableFacesrecord component. -
diffuseLighting
private final boolean diffuseLightingThe field for thediffuseLightingrecord component. -
flipV
private final boolean flipVThe field for theflipVrecord component. -
ambientToFullbright
private final boolean ambientToFullbrightThe field for theambientToFullbrightrecord component. -
materialLibraryOverrideLocation
The field for thematerialLibraryOverrideLocationrecord component.
-
-
Constructor Details
-
ModelSettings
public ModelSettings(@Nonnull ResourceLocation modelLocation, boolean detectCullableFaces, boolean diffuseLighting, boolean flipV, boolean ambientToFullbright, @Nullable String materialLibraryOverrideLocation) Creates an instance of aModelSettingsrecord class.- Parameters:
modelLocation- the value for themodelLocationrecord componentdetectCullableFaces- the value for thedetectCullableFacesrecord componentdiffuseLighting- the value for thediffuseLightingrecord componentflipV- the value for theflipVrecord componentambientToFullbright- the value for theambientToFullbrightrecord componentmaterialLibraryOverrideLocation- the value for thematerialLibraryOverrideLocationrecord 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 themodelLocationrecord component.- Returns:
- the value of the
modelLocationrecord component
-
detectCullableFaces
public boolean detectCullableFaces()Returns the value of thedetectCullableFacesrecord component.- Returns:
- the value of the
detectCullableFacesrecord component
-
diffuseLighting
public boolean diffuseLighting()Returns the value of thediffuseLightingrecord component.- Returns:
- the value of the
diffuseLightingrecord component
-
flipV
public boolean flipV()Returns the value of theflipVrecord component.- Returns:
- the value of the
flipVrecord component
-
ambientToFullbright
public boolean ambientToFullbright()Returns the value of theambientToFullbrightrecord component.- Returns:
- the value of the
ambientToFullbrightrecord component
-
materialLibraryOverrideLocation
Returns the value of thematerialLibraryOverrideLocationrecord component.- Returns:
- the value of the
materialLibraryOverrideLocationrecord component
-