Package net.minecraft.item.map
Record Class MapDecoration
java.lang.Object
java.lang.Record
net.minecraft.item.map.MapDecoration
- Record Components:
- type-
- x-
- z-
- rotation-
- name-
public record MapDecoration(RegistryEntry<MapDecorationType> type, byte x, byte z, byte rotation, Optional<Text> name)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/item/map/MapDecoration- intermediary - net/minecraft/class_20- official - euo- named - type- intermediary - comp_1842- official - b- named - x- intermediary - comp_1843- official - c- named - z- intermediary - comp_1844- official - d- named - rotation- intermediary - comp_1845- official - e- named - name- intermediary - comp_1846- official - f
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final PacketCodec<RegistryByteBuf, MapDecoration> The field for thenamerecord component.private final byteThe field for therotationrecord component.private final RegistryEntry<MapDecorationType> The field for thetyperecord component.private final byteThe field for thexrecord component.private final byteThe field for thezrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionMapDecoration(RegistryEntry<MapDecorationType> registryEntry, byte x, byte z, byte rotation, Optional<Text> optional) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanname()Returns the value of thenamerecord component.byterotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.bytex()Returns the value of thexrecord component.bytez()Returns the value of thezrecord component.
- 
Field Details- 
typeThe field for thetyperecord component.
- 
xprivate final byte xThe field for thexrecord component.
- 
zprivate final byte zThe field for thezrecord component.
- 
rotationprivate final byte rotationThe field for therotationrecord component.
- 
nameThe field for thenamerecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/item/map/MapDecoration;CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_48920- Lnet/minecraft/class_20;field_48920:Lnet/minecraft/class_9139;- official - a- Leuo;a:Lyn;
 
 
- 
- 
Constructor Details- 
MapDecorationpublic MapDecoration(RegistryEntry<MapDecorationType> registryEntry, byte x, byte z, byte rotation, Optional<Text> optional) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/item/map/MapDecoration;<init>(Lnet/minecraft/registry/entry/RegistryEntry;BBBLjava/util/Optional;)V- intermediary - <init>- Lnet/minecraft/class_20;<init>(Lnet/minecraft/class_6880;BBBLjava/util/Optional;)V- official - <init>- Leuo;<init>(Ljr;BBBLjava/util/Optional;)V
 
 
- 
- 
Method Details- 
getAssetId- Mappings:
- Namespace - Name - Mixin selector - named - getAssetId- Lnet/minecraft/item/map/MapDecoration;getAssetId()Lnet/minecraft/util/Identifier;- intermediary - method_58451- Lnet/minecraft/class_20;method_58451()Lnet/minecraft/class_2960;- official - a- Leuo;a()Lakv;
 
- 
isAlwaysRenderedpublic boolean isAlwaysRendered()- Mappings:
- Namespace - Name - Mixin selector - named - isAlwaysRendered- Lnet/minecraft/item/map/MapDecoration;isAlwaysRendered()Z- intermediary - method_94- Lnet/minecraft/class_20;method_94()Z- official - b- Leuo;b()Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
xpublic byte x()Returns the value of thexrecord component.- Returns:
- the value of the xrecord component
 
- 
zpublic byte z()Returns the value of thezrecord component.- Returns:
- the value of the zrecord component
 
- 
rotationpublic byte rotation()Returns the value of therotationrecord component.- Returns:
- the value of the rotationrecord component
 
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
 
-