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/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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<MapFrameMarker> private final int
The field for theentityId
record component.private final BlockPos
The field for thepos
record component.private final int
The field for therotation
record component. -
Constructor Summary
ConstructorsConstructorDescriptionMapFrameMarker
(BlockPos pos, int rotation, int entityId) Creates an instance of aMapFrameMarker
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
entityId()
Returns the value of theentityId
record component.final boolean
Indicates whether some other object is "equal to" this one.getKey()
static String
final int
hashCode()
Returns a hash code value for this object.pos()
Returns the value of thepos
record component.int
rotation()
Returns the value of therotation
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
pos
The field for thepos
record component. -
rotation
private final int rotationThe field for therotation
record component. -
entityId
private final int entityIdThe field for theentityId
record component. -
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
-
Method Details
-
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
- 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
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 thepos
record component.- Returns:
- the value of the
pos
record component
-
rotation
public int rotation()Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
entityId
public int entityId()Returns the value of theentityId
record component.- Returns:
- the value of the
entityId
record component
-