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 official enj
intermediary net/minecraft/class_20
named net/minecraft/item/map/MapDecoration
official b
intermediary comp_1842
named type
official c
intermediary comp_1843
named x
official d
intermediary comp_1844
named z
official e
intermediary comp_1845
named rotation
official f
intermediary comp_1846
named name
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec
<RegistryByteBuf, MapDecoration> The field for thename
record component.private final byte
The field for therotation
record component.private final RegistryEntry
<MapDecorationType> The field for thetype
record component.private final byte
The field for thex
record component.private final byte
The field for thez
record component. -
Constructor Summary
ConstructorsConstructorDescriptionMapDecoration
(RegistryEntry<MapDecorationType> registryEntry, byte x, byte z, byte rotation, Optional<Text> optional) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
name()
Returns the value of thename
record component.byte
rotation()
Returns the value of therotation
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.byte
x()
Returns the value of thex
record component.byte
z()
Returns the value of thez
record component.
-
Field Details
-
type
The field for thetype
record component. -
x
private final byte xThe field for thex
record component. -
z
private final byte zThe field for thez
record component. -
rotation
private final byte rotationThe field for therotation
record component. -
name
The field for thename
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lenj;a:Lys;
intermediary field_48920
Lnet/minecraft/class_20;field_48920:Lnet/minecraft/class_9139;
named CODEC
Lnet/minecraft/item/map/MapDecoration;CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
MapDecoration
public MapDecoration(RegistryEntry<MapDecorationType> registryEntry, byte x, byte z, byte rotation, Optional<Text> optional) - Mappings:
Namespace Name Mixin selector official <init>
Lenj;<init>(Liw;BBBLjava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_20;<init>(Lnet/minecraft/class_6880;BBBLjava/util/Optional;)V
named <init>
Lnet/minecraft/item/map/MapDecoration;<init>(Lnet/minecraft/registry/entry/RegistryEntry;BBBLjava/util/Optional;)V
-
-
Method Details
-
getAssetId
- Mappings:
Namespace Name Mixin selector official a
Lenj;a()Lakh;
intermediary method_58451
Lnet/minecraft/class_20;method_58451()Lnet/minecraft/class_2960;
named getAssetId
Lnet/minecraft/item/map/MapDecoration;getAssetId()Lnet/minecraft/util/Identifier;
-
isAlwaysRendered
public boolean isAlwaysRendered()- Mappings:
Namespace Name Mixin selector official b
Lenj;b()Z
intermediary method_94
Lnet/minecraft/class_20;method_94()Z
named isAlwaysRendered
Lnet/minecraft/item/map/MapDecoration;isAlwaysRendered()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 thetype
record component.- Returns:
- the value of the
type
record component
-
x
public byte x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
z
public byte z()Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-
rotation
public byte rotation()Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-