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 Details

    • assetId

      private final Identifier assetId
      The field for the assetId record component.
    • showOnItemFrame

      private final boolean showOnItemFrame
      The field for the showOnItemFrame record component.
    • mapColor

      private final int mapColor
      The field for the mapColor record component.
    • explorationMapElement

      private final boolean explorationMapElement
      The field for the explorationMapElement record component.
    • trackCount

      private final boolean trackCount
      The field for the trackCount 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

      public static final com.mojang.serialization.Codec<RegistryEntry<MapDecorationType>> 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

      public static final PacketCodec<RegistryByteBuf,RegistryEntry<MapDecorationType>> 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • assetId

      public Identifier assetId()
      Returns the value of the assetId record component.
      Returns:
      the value of the assetId record component
    • showOnItemFrame

      public boolean showOnItemFrame()
      Returns the value of the showOnItemFrame record component.
      Returns:
      the value of the showOnItemFrame record component
    • mapColor

      public int mapColor()
      Returns the value of the mapColor record component.
      Returns:
      the value of the mapColor record component
    • explorationMapElement

      public boolean explorationMapElement()
      Returns the value of the explorationMapElement record component.
      Returns:
      the value of the explorationMapElement record component
    • trackCount

      public boolean trackCount()
      Returns the value of the trackCount record component.
      Returns:
      the value of the trackCount record component