Record Class BlockElementFace

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.BlockElementFace

public record BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, BlockFaceUV uv, @Nullable ExtraFaceData faceData, org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent) extends Record
  • Field Details

    • cullForDirection

      @Nullable private final Direction cullForDirection
      The field for the cullForDirection record component.
    • tintIndex

      private final int tintIndex
      The field for the tintIndex record component.
    • texture

      private final String texture
      The field for the texture record component.
    • uv

      private final BlockFaceUV uv
      The field for the uv record component.
    • faceData

      @Nullable private final ExtraFaceData faceData
      The field for the faceData record component.
    • parent

      private final org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent
      The field for the parent record component.
    • NO_TINT

      public static final int NO_TINT
      See Also:
  • Constructor Details

    • BlockElementFace

      public BlockElementFace(@Nullable Direction p_111359_, int p_111360_, String p_111361_, BlockFaceUV p_111362_)
    • BlockElementFace

      public BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, BlockFaceUV uv, @Nullable ExtraFaceData faceData, org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent)
      Creates an instance of a BlockElementFace record class.
      Parameters:
      cullForDirection - the value for the cullForDirection record component
      tintIndex - the value for the tintIndex record component
      texture - the value for the texture record component
      uv - the value for the uv record component
      faceData - the value for the faceData record component
      parent - the value for the parent record component
  • Method Details

    • faceData

      public ExtraFaceData faceData()
      Returns the value of the faceData record component.
      Returns:
      the value of the faceData record component
    • 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.
    • cullForDirection

      @Nullable public Direction cullForDirection()
      Returns the value of the cullForDirection record component.
      Returns:
      the value of the cullForDirection record component
    • tintIndex

      public int tintIndex()
      Returns the value of the tintIndex record component.
      Returns:
      the value of the tintIndex record component
    • texture

      public String texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component
    • uv

      public BlockFaceUV uv()
      Returns the value of the uv record component.
      Returns:
      the value of the uv record component
    • parent

      public org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component