Package net.minecraft.item.map
Record Class MapFrameMarker
java.lang.Object
java.lang.Record
net.minecraft.item.map.MapFrameMarker
- Record Components:
pos-rotation-entityId-
- Mappings:
Namespace Name named net/minecraft/item/map/MapFrameMarkerintermediary net/minecraft/class_19official ezsnamed posintermediary comp_3491official bnamed rotationintermediary comp_3492official cnamed entityIdintermediary comp_3493official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MapFrameMarker> private final intThe field for theentityIdrecord component.private final BlockPosThe field for theposrecord component.private final intThe field for therotationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMapFrameMarker(BlockPos pos, int rotation, int entityId) Creates an instance of aMapFrameMarkerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintentityId()Returns the value of theentityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.getKey()static Stringfinal inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.introtation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
rotation
private final int rotationThe field for therotationrecord component. -
entityId
private final int entityIdThe field for theentityIdrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/item/map/MapFrameMarker;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56473Lnet/minecraft/class_19;field_56473:Lcom/mojang/serialization/Codec;official aLezs;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
getKey
- Mappings:
Namespace Name Mixin selector named getKeyLnet/minecraft/item/map/MapFrameMarker;getKey()Ljava/lang/String;intermediary method_82Lnet/minecraft/class_19;method_82()Ljava/lang/String;official aLezs;a()Ljava/lang/String;
-
getKey
- Mappings:
Namespace Name Mixin selector named getKeyLnet/minecraft/item/map/MapFrameMarker;getKey(Lnet/minecraft/util/math/BlockPos;)Ljava/lang/String;intermediary method_81Lnet/minecraft/class_19;method_81(Lnet/minecraft/class_2338;)Ljava/lang/String;official aLezs;a(Liw;)Ljava/lang/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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
rotation
public int rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
entityId
public int entityId()Returns the value of theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-