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

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the automaticCulling record component.
    private final boolean
    The field for the emissiveAmbient record component.
    private final boolean
    The field for the flipV record component.
    private final @NotNull ResourceLocation
    The field for the modelLocation record component.
    private final @Nullable String
    The field for the mtlOverride record component.
    private final boolean
    The field for the shadeQuads record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelSettings(@NotNull ResourceLocation modelLocation, boolean automaticCulling, boolean shadeQuads, boolean flipV, boolean emissiveAmbient, @Nullable String mtlOverride)
    Creates an instance of a ModelSettings record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the automaticCulling record component.
    boolean
    Returns the value of the emissiveAmbient record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the flipV record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the modelLocation record component.
    @Nullable String
    Returns the value of the mtlOverride record component.
    boolean
    Returns the value of the shadeQuads record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • modelLocation

      @NotNull private final @NotNull ResourceLocation modelLocation
      The field for the modelLocation record component.
    • automaticCulling

      private final boolean automaticCulling
      The field for the automaticCulling record component.
    • shadeQuads

      private final boolean shadeQuads
      The field for the shadeQuads record component.
    • flipV

      private final boolean flipV
      The field for the flipV record component.
    • emissiveAmbient

      private final boolean emissiveAmbient
      The field for the emissiveAmbient record component.
    • mtlOverride

      @Nullable private final @Nullable String mtlOverride
      The field for the mtlOverride record 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 a ModelSettings record class.
      Parameters:
      modelLocation - the value for the modelLocation record component
      automaticCulling - the value for the automaticCulling record component
      shadeQuads - the value for the shadeQuads record component
      flipV - the value for the flipV record component
      emissiveAmbient - the value for the emissiveAmbient record component
      mtlOverride - the value for the mtlOverride record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • modelLocation

      @NotNull public @NotNull ResourceLocation modelLocation()
      Returns the value of the modelLocation record component.
      Returns:
      the value of the modelLocation record component
    • automaticCulling

      public boolean automaticCulling()
      Returns the value of the automaticCulling record component.
      Returns:
      the value of the automaticCulling record component
    • shadeQuads

      public boolean shadeQuads()
      Returns the value of the shadeQuads record component.
      Returns:
      the value of the shadeQuads record component
    • flipV

      public boolean flipV()
      Returns the value of the flipV record component.
      Returns:
      the value of the flipV record component
    • emissiveAmbient

      public boolean emissiveAmbient()
      Returns the value of the emissiveAmbient record component.
      Returns:
      the value of the emissiveAmbient record component
    • mtlOverride

      @Nullable public @Nullable String mtlOverride()
      Returns the value of the mtlOverride record component.
      Returns:
      the value of the mtlOverride record component