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 Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionModelSettings(@NotNull ResourceLocation modelLocation, boolean automaticCulling, boolean shadeQuads, boolean flipV, boolean emissiveAmbient, @Nullable String mtlOverride) Creates an instance of aModelSettingsrecord class. -
Method Summary
Modifier 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
-
modelLocation
The field for themodelLocationrecord component. -
automaticCulling
private final boolean automaticCullingThe field for theautomaticCullingrecord component. -
shadeQuads
private final boolean shadeQuadsThe field for theshadeQuadsrecord component. -
flipV
private final boolean flipVThe field for theflipVrecord component. -
emissiveAmbient
private final boolean emissiveAmbientThe field for theemissiveAmbientrecord component. -
mtlOverride
The field for themtlOverriderecord component.
-
-
Constructor Details
-
ModelSettings
public 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 themodelLocationrecord componentautomaticCulling- the value for theautomaticCullingrecord componentshadeQuads- the value for theshadeQuadsrecord componentflipV- the value for theflipVrecord componentemissiveAmbient- the value for theemissiveAmbientrecord componentmtlOverride- the value for themtlOverriderecord 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
-
automaticCulling
public boolean automaticCulling()Returns the value of theautomaticCullingrecord component.- Returns:
- the value of the
automaticCullingrecord component
-
shadeQuads
public boolean shadeQuads()Returns the value of theshadeQuadsrecord component.- Returns:
- the value of the
shadeQuadsrecord component
-
flipV
public boolean flipV()Returns the value of theflipVrecord component.- Returns:
- the value of the
flipVrecord component
-
emissiveAmbient
public boolean emissiveAmbient()Returns the value of theemissiveAmbientrecord component.- Returns:
- the value of the
emissiveAmbientrecord component
-
mtlOverride
Returns the value of themtlOverriderecord component.- Returns:
- the value of the
mtlOverriderecord component
-