Record Class MultipartObjModel.ModelSettings
java.lang.Object
java.lang.Record
de.mrjulsen.mcdragonlib.neoforge.client.model.loaders.MultipartObjModel.ModelSettings
- Enclosing class:
MultipartObjModel
public static record MultipartObjModel.ModelSettings(@NotNull net.minecraft.resources.ResourceLocation modelLocation, boolean automaticCulling, boolean shadeQuads, boolean flipV, boolean emissiveAmbient, @Nullable String mtlOverride, List<MultipartObjModel.SubModelSettings> subSettings)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionModelSettings(@NotNull net.minecraft.resources.ResourceLocation modelLocation, boolean automaticCulling, boolean shadeQuads, boolean flipV, boolean emissiveAmbient, @Nullable String mtlOverride, List<MultipartObjModel.SubModelSettings> subSettings) 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 net.minecraft.resources.ResourceLocationReturns the value of themodelLocationrecord component.@Nullable StringReturns the value of themtlOverriderecord component.booleanReturns the value of theshadeQuadsrecord component.Returns the value of thesubSettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelSettings
public ModelSettings(@NotNull @NotNull net.minecraft.resources.ResourceLocation modelLocation, boolean automaticCulling, boolean shadeQuads, boolean flipV, boolean emissiveAmbient, @Nullable @Nullable String mtlOverride, List<MultipartObjModel.SubModelSettings> subSettings) 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 componentsubSettings- the value for thesubSettingsrecord 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
@NotNull public @NotNull 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
-
subSettings
Returns the value of thesubSettingsrecord component.- Returns:
- the value of the
subSettingsrecord component
-