Record Class ObjModel.ModelSettings
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.obj.ObjModel.ModelSettings
- Enclosing class:
ObjModel
public static record ObjModel.ModelSettings(ResourceLocation modelLocation, boolean automaticCulling, boolean shadeQuads, boolean flipV, boolean emissiveAmbient, @Nullable String mtlOverride)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
The field for theautomaticCulling
record component.private final boolean
The field for theemissiveAmbient
record component.private final boolean
The field for theflipV
record component.private final ResourceLocation
The field for themodelLocation
record component.private final @Nullable String
The field for themtlOverride
record component.private final boolean
The field for theshadeQuads
record component. -
Constructor Summary
ConstructorDescriptionModelSettings
(ResourceLocation modelLocation, boolean automaticCulling, boolean shadeQuads, boolean flipV, boolean emissiveAmbient, @Nullable String mtlOverride) Creates an instance of aModelSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theautomaticCulling
record component.boolean
Returns the value of theemissiveAmbient
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 themodelLocation
record component.@Nullable String
Returns the value of themtlOverride
record component.boolean
Returns the value of theshadeQuads
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
modelLocation
The field for themodelLocation
record component. -
automaticCulling
private final boolean automaticCullingThe field for theautomaticCulling
record component. -
shadeQuads
private final boolean shadeQuadsThe field for theshadeQuads
record component. -
flipV
private final boolean flipVThe field for theflipV
record component. -
emissiveAmbient
private final boolean emissiveAmbientThe field for theemissiveAmbient
record component. -
mtlOverride
The field for themtlOverride
record component.
-
-
Constructor Details
-
ModelSettings
public ModelSettings(ResourceLocation modelLocation, boolean automaticCulling, boolean shadeQuads, boolean flipV, boolean emissiveAmbient, @Nullable @Nullable String mtlOverride) Creates an instance of aModelSettings
record class.- Parameters:
modelLocation
- the value for themodelLocation
record componentautomaticCulling
- the value for theautomaticCulling
record componentshadeQuads
- the value for theshadeQuads
record componentflipV
- the value for theflipV
record componentemissiveAmbient
- the value for theemissiveAmbient
record componentmtlOverride
- the value for themtlOverride
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
-
automaticCulling
public boolean automaticCulling()Returns the value of theautomaticCulling
record component.- Returns:
- the value of the
automaticCulling
record component
-
shadeQuads
public boolean shadeQuads()Returns the value of theshadeQuads
record component.- Returns:
- the value of the
shadeQuads
record component
-
flipV
public boolean flipV()Returns the value of theflipV
record component.- Returns:
- the value of the
flipV
record component
-
emissiveAmbient
public boolean emissiveAmbient()Returns the value of theemissiveAmbient
record component.- Returns:
- the value of the
emissiveAmbient
record component
-
mtlOverride
Returns the value of themtlOverride
record component.- Returns:
- the value of the
mtlOverride
record component
-