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/MapDecorationTypeintermediary net/minecraft/class_9428official fklnamed assetIdintermediary comp_2514official dnamed showOnItemFrameintermediary comp_2515official enamed mapColorintermediary comp_2516official fnamed explorationMapElementintermediary comp_2517official gnamed trackCountintermediary comp_2518official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theassetIdrecord component.static final com.mojang.serialization.Codec<RegistryEntry<MapDecorationType>> private final booleanThe field for theexplorationMapElementrecord component.private final intThe field for themapColorrecord component.static final intstatic final PacketCodec<RegistryByteBuf, RegistryEntry<MapDecorationType>> private final booleanThe field for theshowOnItemFramerecord component.private final booleanThe field for thetrackCountrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMapDecorationType(Identifier assetId, boolean showOnItemFrame, int mapColor, boolean explorationMapElement, boolean trackCount) Creates an instance of aMapDecorationTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionassetId()Returns the value of theassetIdrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexplorationMapElementrecord component.final inthashCode()Returns a hash code value for this object.booleanintmapColor()Returns the value of themapColorrecord component.booleanReturns the value of theshowOnItemFramerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetrackCountrecord component.
-
Field Details
-
assetId
The field for theassetIdrecord component. -
showOnItemFrame
private final boolean showOnItemFrameThe field for theshowOnItemFramerecord component. -
mapColor
private final int mapColorThe field for themapColorrecord component. -
explorationMapElement
private final boolean explorationMapElementThe field for theexplorationMapElementrecord component. -
trackCount
private final boolean trackCountThe field for thetrackCountrecord component. -
NO_MAP_COLOR
public static final int NO_MAP_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector named NO_MAP_COLORLnet/minecraft/item/map/MapDecorationType;NO_MAP_COLOR:Iintermediary field_50016Lnet/minecraft/class_9428;field_50016:Iofficial aLfkl;a:I
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/item/map/MapDecorationType;CODEC:Lcom/mojang/serialization/Codec;intermediary field_50017Lnet/minecraft/class_9428;field_50017:Lcom/mojang/serialization/Codec;official bLfkl;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/item/map/MapDecorationType;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_50018Lnet/minecraft/class_9428;field_50018:Lnet/minecraft/class_9139;official cLfkl;c:Laat;
-
-
Constructor Details
-
MapDecorationType
public MapDecorationType(Identifier assetId, boolean showOnItemFrame, int mapColor, boolean explorationMapElement, boolean trackCount) Creates an instance of aMapDecorationTyperecord class.- Parameters:
assetId- the value for theassetIdrecord componentshowOnItemFrame- the value for theshowOnItemFramerecord componentmapColor- the value for themapColorrecord componentexplorationMapElement- the value for theexplorationMapElementrecord componenttrackCount- the value for thetrackCountrecord component
-
-
Method Details
-
hasMapColor
public boolean hasMapColor()- Mappings:
Namespace Name Mixin selector named hasMapColorLnet/minecraft/item/map/MapDecorationType;hasMapColor()Zintermediary method_58452Lnet/minecraft/class_9428;method_58452()Zofficial aLfkl;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 theassetIdrecord component.- Returns:
- the value of the
assetIdrecord component
-
showOnItemFrame
public boolean showOnItemFrame()Returns the value of theshowOnItemFramerecord component.- Returns:
- the value of the
showOnItemFramerecord component
-
mapColor
public int mapColor()Returns the value of themapColorrecord component.- Returns:
- the value of the
mapColorrecord component
-
explorationMapElement
public boolean explorationMapElement()Returns the value of theexplorationMapElementrecord component.- Returns:
- the value of the
explorationMapElementrecord component
-
trackCount
public boolean trackCount()Returns the value of thetrackCountrecord component.- Returns:
- the value of the
trackCountrecord component
-