Record Class GeneratedItemModel.class_12295

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.GeneratedItemModel.class_12295
Record Components:
facing -
x -
y -
Enclosing class:
GeneratedItemModel

@Environment(CLIENT) private static record GeneratedItemModel.class_12295(GeneratedItemModel.Side facing, int x, int y) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/GeneratedItemModel$class_12295
intermediary net/minecraft/class_801$class_12295
official hmg$b
named facing
intermediary comp_5189
official a
named x
intermediary comp_5190
official b
named y
intermediary comp_5191
official c
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The field for the facing record component.
    private final int
    The field for the x record component.
    private final int
    The field for the y record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    class_12295(GeneratedItemModel.Side facing, int x, int y)
    Creates an instance of a class_12295 record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    Returns the value of the facing record component.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    int
    x()
    Returns the value of the x record component.
    int
    y()
    Returns the value of the y record component.

    Methods inherited from class java.lang.Object

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

    • facing

      private final GeneratedItemModel.Side facing
      The field for the facing record component.
    • x

      private final int x
      The field for the x record component.
    • y

      private final int y
      The field for the y record component.
  • Constructor Details

    • class_12295

      class_12295(GeneratedItemModel.Side facing, int x, int y)
      Creates an instance of a class_12295 record class.
      Parameters:
      facing - the value for the facing record component
      x - the value for the x record component
      y - the value for the y 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • facing

      public GeneratedItemModel.Side facing()
      Returns the value of the facing record component.
      Returns:
      the value of the facing record component
    • x

      public int x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public int y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component