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 epg
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 Summary
Modifier 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
ConstructorDescriptionMapDecoration
(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 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
Lepg;a:Lzn;
-
-
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;)V
intermediary <init>
Lnet/minecraft/class_20;<init>(Lnet/minecraft/class_6880;BBBLjava/util/Optional;)V
official <init>
Lepg;<init>(Lji;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
Lepg;a()Lalf;
-
isAlwaysRendered
public 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
Lepg;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 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
-