Record Class ObjModel.ModelSettings
java.lang.Object
java.lang.Record
de.mrjulsen.mcdragonlib.neoforge.client.model.loaders.ObjModel.ModelSettings
- Enclosing class:
ObjModel
-
Constructor Summary
ConstructorsConstructorDescriptionModelSettings(net.minecraft.resources.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.net.minecraft.resources.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.
-
Constructor Details
-
ModelSettings
public ModelSettings(net.minecraft.resources.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
public net.minecraft.resources.ResourceLocation 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
-