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(@Nonnull ResourceLocation modelLocation, boolean detectCullableFaces, boolean diffuseLighting, boolean flipV, boolean ambientToFullbright, @Nullable String materialLibraryOverrideLocation) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the ambientToFullbright record component.
    private final boolean
    The field for the detectCullableFaces record component.
    private final boolean
    The field for the diffuseLighting record component.
    private final boolean
    The field for the flipV record component.
    private final String
    The field for the materialLibraryOverrideLocation record component.
    private final ResourceLocation
    The field for the modelLocation record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelSettings(ResourceLocation modelLocation, boolean detectCullableFaces, boolean diffuseLighting, boolean flipV, boolean ambientToFullbright, String materialLibraryOverrideLocation)
    Creates an instance of a ModelSettings record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the ambientToFullbright record component.
    boolean
    Returns the value of the detectCullableFaces record component.
    boolean
    Returns the value of the diffuseLighting 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 materialLibraryOverrideLocation record component.
    Returns the value of the modelLocation 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

      @Nonnull private final ResourceLocation modelLocation
      The field for the modelLocation record component.
    • detectCullableFaces

      private final boolean detectCullableFaces
      The field for the detectCullableFaces record component.
    • diffuseLighting

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

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

      private final boolean ambientToFullbright
      The field for the ambientToFullbright record component.
    • materialLibraryOverrideLocation

      @Nullable private final String materialLibraryOverrideLocation
      The field for the materialLibraryOverrideLocation record component.
  • Constructor Details

    • ModelSettings

      public ModelSettings(@Nonnull ResourceLocation modelLocation, boolean detectCullableFaces, boolean diffuseLighting, boolean flipV, boolean ambientToFullbright, @Nullable String materialLibraryOverrideLocation)
      Creates an instance of a ModelSettings record class.
      Parameters:
      modelLocation - the value for the modelLocation record component
      detectCullableFaces - the value for the detectCullableFaces record component
      diffuseLighting - the value for the diffuseLighting record component
      flipV - the value for the flipV record component
      ambientToFullbright - the value for the ambientToFullbright record component
      materialLibraryOverrideLocation - the value for the materialLibraryOverrideLocation 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

      @Nonnull public ResourceLocation modelLocation()
      Returns the value of the modelLocation record component.
      Returns:
      the value of the modelLocation record component
    • detectCullableFaces

      public boolean detectCullableFaces()
      Returns the value of the detectCullableFaces record component.
      Returns:
      the value of the detectCullableFaces record component
    • diffuseLighting

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

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

      public boolean ambientToFullbright()
      Returns the value of the ambientToFullbright record component.
      Returns:
      the value of the ambientToFullbright record component
    • materialLibraryOverrideLocation

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