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 ForgeFaceData data) 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.
    • data

      @Nullable private final ForgeFaceData data
      The field for the data record component.
    • NO_TINT

      public static final int NO_TINT
      See Also:
  • Constructor Details

    • BlockElementFace

      public BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, BlockFaceUV uv)
    • BlockElementFace

      public BlockElementFace(@Nullable Direction cullForDirection, int tintIndex, String texture, BlockFaceUV uv, @Nullable ForgeFaceData data)
      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
      data - the value for the data record component
  • Method Details

    • data

      public ForgeFaceData data()
      Returns the value of the data record component.
      Returns:
      the value of the data 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