Record Class MapFrameMarker

java.lang.Object
java.lang.Record
net.minecraft.item.map.MapFrameMarker
Record Components:
pos -
rotation -
entityId -

public record MapFrameMarker(BlockPos pos, int rotation, int entityId) extends Record
Mappings:
Namespace Name
named net/minecraft/item/map/MapFrameMarker
intermediary net/minecraft/class_19
official ezs
named pos
intermediary comp_3491
official b
named rotation
intermediary comp_3492
official c
named entityId
intermediary comp_3493
official d
  • Field Details Link icon

    • pos Link icon

      private final BlockPos pos
      The field for the pos record component.
    • rotation Link icon

      private final int rotation
      The field for the rotation record component.
    • entityId Link icon

      private final int entityId
      The field for the entityId record component.
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<MapFrameMarker> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/item/map/MapFrameMarker;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56473 Lnet/minecraft/class_19;field_56473:Lcom/mojang/serialization/Codec;
      official a Lezs;a:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

    • MapFrameMarker Link icon

      public MapFrameMarker(BlockPos pos, int rotation, int entityId)
      Creates an instance of a MapFrameMarker record class.
      Parameters:
      pos - the value for the pos record component
      rotation - the value for the rotation record component
      entityId - the value for the entityId record component
  • Method Details Link icon

    • getKey Link icon

      public String getKey()
      Mappings:
      Namespace Name Mixin selector
      named getKey Lnet/minecraft/item/map/MapFrameMarker;getKey()Ljava/lang/String;
      intermediary method_82 Lnet/minecraft/class_19;method_82()Ljava/lang/String;
      official a Lezs;a()Ljava/lang/String;
    • getKey Link icon

      public static String getKey(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getKey Lnet/minecraft/item/map/MapFrameMarker;getKey(Lnet/minecraft/util/math/BlockPos;)Ljava/lang/String;
      intermediary method_81 Lnet/minecraft/class_19;method_81(Lnet/minecraft/class_2338;)Ljava/lang/String;
      official a Lezs;a(Liw;)Ljava/lang/String;
    • toString Link icon

      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 Link icon

      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 Link icon

      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.
    • pos Link icon

      public BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • rotation Link icon

      public int rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • entityId Link icon

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