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/MapDecorationintermediary net/minecraft/class_20official eqnnamed typeintermediary comp_1842official bnamed xintermediary comp_1843official cnamed zintermediary comp_1844official dnamed rotationintermediary comp_1845official enamed nameintermediary comp_1846official f
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionMapDecoration(RegistryEntry<MapDecorationType> registryEntry, byte x, byte z, byte rotation, Optional<Text> optional) -
Method Summary
Modifier 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
-
type
The field for thetyperecord component. -
x
private final byte xThe field for thexrecord component. -
z
private final byte zThe field for thezrecord component. -
rotation
private final byte rotationThe field for therotationrecord component. -
name
The field for thenamerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/item/map/MapDecoration;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_48920Lnet/minecraft/class_20;field_48920:Lnet/minecraft/class_9139;official aLeqn;a:Lyx;
-
-
Constructor Details
-
MapDecoration
public 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;)Vintermediary <init>Lnet/minecraft/class_20;<init>(Lnet/minecraft/class_6880;BBBLjava/util/Optional;)Vofficial <init>Leqn;<init>(Ljm;BBBLjava/util/Optional;)V
-
-
Method Details
-
getAssetId
- Mappings:
Namespace Name Mixin selector named getAssetIdLnet/minecraft/item/map/MapDecoration;getAssetId()Lnet/minecraft/util/Identifier;intermediary method_58451Lnet/minecraft/class_20;method_58451()Lnet/minecraft/class_2960;official aLeqn;a()Lakr;
-
isAlwaysRendered
public boolean isAlwaysRendered()- Mappings:
Namespace Name Mixin selector named isAlwaysRenderedLnet/minecraft/item/map/MapDecoration;isAlwaysRendered()Zintermediary method_94Lnet/minecraft/class_20;method_94()Zofficial bLeqn;b()Z
-
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
x
public byte x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
z
public byte z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
rotation
public byte rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-