Record Class MapState.Marker

java.lang.Object
java.lang.Record
net.minecraft.item.map.MapState.Marker
Record Components:
type -
x -
y -
rot -
Enclosing class:
MapState

private static record MapState.Marker(RegistryEntry<MapDecorationType> type, byte x, byte y, byte rot) extends Record
Mappings:
Namespace Name
named net/minecraft/item/map/MapState$Marker
intermediary net/minecraft/class_22$class_9907
official evq$b
named type
intermediary comp_2974
official a
named x
intermediary comp_2975
official b
named y
intermediary comp_2976
official c
named rot
intermediary comp_2977
official d
  • Field Summary

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

    Constructors
    Constructor
    Description
    Marker(RegistryEntry<MapDecorationType> registryEntry, byte byte2, byte byte3, byte byte4)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    byte
    rot()
    Returns the value of the rot record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the type record component.
    byte
    x()
    Returns the value of the x record component.
    byte
    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

    • type

      private final RegistryEntry<MapDecorationType> type
      The field for the type record component.
    • x

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

      private final byte y
      The field for the y record component.
    • rot

      private final byte rot
      The field for the rot record component.
  • Constructor Details

  • 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.
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • x

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

      public byte y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • rot

      public byte rot()
      Returns the value of the rot record component.
      Returns:
      the value of the rot record component