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 evnnamed posintermediary comp_3491official anamed rotationintermediary comp_3492official bnamed entityIdintermediary comp_3493official c
-
Field Summary
Fields -
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.static @Nullable MapFrameMarkerfromNbt(NbtCompound nbt) 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.toNbt()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
fromNbt
- Mappings:
Namespace Name Mixin selector named fromNbtLnet/minecraft/item/map/MapFrameMarker;fromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/item/map/MapFrameMarker;intermediary method_87Lnet/minecraft/class_19;method_87(Lnet/minecraft/class_2487;)Lnet/minecraft/class_19;official aLevn;a(Ltq;)Levn;
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbtLnet/minecraft/item/map/MapFrameMarker;toNbt()Lnet/minecraft/nbt/NbtCompound;intermediary method_84Lnet/minecraft/class_19;method_84()Lnet/minecraft/class_2487;official aLevn;a()Ltq;
-
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 bLevn;b()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 aLevn;a(Lji;)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
-