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(@NotNull ResourceLocation modelLocation, boolean automaticCulling, boolean shadeQuads, boolean flipV, boolean emissiveAmbient, @Nullable String mtlOverride)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theautomaticCullingrecord component.private final booleanThe field for theemissiveAmbientrecord component.private final booleanThe field for theflipVrecord component.private final @NotNull ResourceLocationThe field for themodelLocationrecord component.private final @Nullable StringThe field for themtlOverriderecord component.private final booleanThe field for theshadeQuadsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionModelSettings(@NotNull ResourceLocation modelLocation, boolean automaticCulling, boolean shadeQuads, boolean flipV, boolean emissiveAmbient, @Nullable String mtlOverride) Creates an instance of aModelSettingsrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns the value of theautomaticCullingrecord component.booleanReturns the value of theemissiveAmbientrecord 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.@NotNull ResourceLocationReturns the value of themodelLocationrecord component.@Nullable StringReturns the value of themtlOverriderecord component.booleanReturns the value of theshadeQuadsrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
modelLocationThe field for themodelLocationrecord component.
- 
automaticCullingprivate final boolean automaticCullingThe field for theautomaticCullingrecord component.
- 
shadeQuadsprivate final boolean shadeQuadsThe field for theshadeQuadsrecord component.
- 
flipVprivate final boolean flipVThe field for theflipVrecord component.
- 
emissiveAmbientprivate final boolean emissiveAmbientThe field for theemissiveAmbientrecord component.
- 
mtlOverrideThe field for themtlOverriderecord component.
 
- 
- 
Constructor Details- 
ModelSettingspublic ModelSettings(@NotNull @NotNull ResourceLocation modelLocation, boolean automaticCulling, boolean shadeQuads, boolean flipV, boolean emissiveAmbient, @Nullable @Nullable String mtlOverride) Creates an instance of aModelSettingsrecord class.- Parameters:
- modelLocation- the value for the- modelLocationrecord component
- automaticCulling- the value for the- automaticCullingrecord component
- shadeQuads- the value for the- shadeQuadsrecord component
- flipV- the value for the- flipVrecord component
- emissiveAmbient- the value for the- emissiveAmbientrecord component
- mtlOverride- the value for the- mtlOverriderecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
modelLocationReturns the value of themodelLocationrecord component.- Returns:
- the value of the modelLocationrecord component
 
- 
automaticCullingpublic boolean automaticCulling()Returns the value of theautomaticCullingrecord component.- Returns:
- the value of the automaticCullingrecord component
 
- 
shadeQuadspublic boolean shadeQuads()Returns the value of theshadeQuadsrecord component.- Returns:
- the value of the shadeQuadsrecord component
 
- 
flipVpublic boolean flipV()Returns the value of theflipVrecord component.- Returns:
- the value of the flipVrecord component
 
- 
emissiveAmbientpublic boolean emissiveAmbient()Returns the value of theemissiveAmbientrecord component.- Returns:
- the value of the emissiveAmbientrecord component
 
- 
mtlOverrideReturns the value of themtlOverriderecord component.- Returns:
- the value of the mtlOverriderecord component
 
 
-