Package net.minecraft.item.map
Record Class MapDecorationType
java.lang.Object
java.lang.Record
net.minecraft.item.map.MapDecorationType
- Record Components:
assetId
-showOnItemFrame
-mapColor
-explorationMapElement
-trackCount
-
public record MapDecorationType(Identifier assetId, boolean showOnItemFrame, int mapColor, boolean explorationMapElement, boolean trackCount)
extends Record
- Mappings:
Namespace Name named net/minecraft/item/map/MapDecorationType
intermediary net/minecraft/class_9428
official eph
named assetId
intermediary comp_2514
official d
named showOnItemFrame
intermediary comp_2515
official e
named mapColor
intermediary comp_2516
official f
named explorationMapElement
intermediary comp_2517
official g
named trackCount
intermediary comp_2518
official h
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Identifier
The field for theassetId
record component.static final com.mojang.serialization.Codec
<RegistryEntry<MapDecorationType>> private final boolean
The field for theexplorationMapElement
record component.private final int
The field for themapColor
record component.static final int
static final PacketCodec
<RegistryByteBuf, RegistryEntry<MapDecorationType>> private final boolean
The field for theshowOnItemFrame
record component.private final boolean
The field for thetrackCount
record component. -
Constructor Summary
ConstructorDescriptionMapDecorationType
(Identifier identifier, boolean bool, int int2, boolean bool2, boolean bool3) -
Method Summary
Modifier and TypeMethodDescriptionassetId()
Returns the value of theassetId
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of theexplorationMapElement
record component.final int
hashCode()
Returns a hash code value for this object.boolean
int
mapColor()
Returns the value of themapColor
record component.boolean
Returns the value of theshowOnItemFrame
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of thetrackCount
record component.
-
Field Details
-
assetId
The field for theassetId
record component. -
showOnItemFrame
private final boolean showOnItemFrameThe field for theshowOnItemFrame
record component. -
mapColor
private final int mapColorThe field for themapColor
record component. -
explorationMapElement
private final boolean explorationMapElementThe field for theexplorationMapElement
record component. -
trackCount
private final boolean trackCountThe field for thetrackCount
record component. -
NO_MAP_COLOR
public static final int NO_MAP_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector named NO_MAP_COLOR
Lnet/minecraft/item/map/MapDecorationType;NO_MAP_COLOR:I
intermediary field_50016
Lnet/minecraft/class_9428;field_50016:I
official a
Leph;a:I
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/item/map/MapDecorationType;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_50017
Lnet/minecraft/class_9428;field_50017:Lcom/mojang/serialization/Codec;
official b
Leph;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/item/map/MapDecorationType;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_50018
Lnet/minecraft/class_9428;field_50018:Lnet/minecraft/class_9139;
official c
Leph;c:Lzn;
-
-
Constructor Details
-
MapDecorationType
public MapDecorationType(Identifier identifier, boolean bool, int int2, boolean bool2, boolean bool3)
-
-
Method Details
-
hasMapColor
public boolean hasMapColor()- Mappings:
Namespace Name Mixin selector named hasMapColor
Lnet/minecraft/item/map/MapDecorationType;hasMapColor()Z
intermediary method_58452
Lnet/minecraft/class_9428;method_58452()Z
official a
Leph;a()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 '=='. -
assetId
Returns the value of theassetId
record component.- Returns:
- the value of the
assetId
record component
-
showOnItemFrame
public boolean showOnItemFrame()Returns the value of theshowOnItemFrame
record component.- Returns:
- the value of the
showOnItemFrame
record component
-
mapColor
public int mapColor()Returns the value of themapColor
record component.- Returns:
- the value of the
mapColor
record component
-
explorationMapElement
public boolean explorationMapElement()Returns the value of theexplorationMapElement
record component.- Returns:
- the value of the
explorationMapElement
record component
-
trackCount
public boolean trackCount()Returns the value of thetrackCount
record component.- Returns:
- the value of the
trackCount
record component
-