Enum Class MapDecoration.Type

java.lang.Object
java.lang.Enum<MapDecoration.Type>
net.minecraft.world.level.saveddata.maps.MapDecoration.Type
All Implemented Interfaces:
Serializable, Comparable<MapDecoration.Type>, Constable, StringRepresentable
Enclosing class:
MapDecoration

public static enum MapDecoration.Type extends Enum<MapDecoration.Type> implements StringRepresentable
  • Enum Constant Details

  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<MapDecoration.Type> CODEC
    • name

      private final String name
    • icon

      private final byte icon
    • renderedOnFrame

      private final boolean renderedOnFrame
    • mapColor

      private final int mapColor
    • isExplorationMapElement

      private final boolean isExplorationMapElement
    • trackCount

      private final boolean trackCount
  • Constructor Details

    • Type

      private Type(String p_298559_, boolean p_181298_, boolean p_181300_)
    • Type

      private Type(String p_297948_, boolean p_181304_, int p_301324_, boolean p_181305_, boolean p_300633_)
  • Method Details

    • values

      public static MapDecoration.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MapDecoration.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getIcon

      public byte getIcon()
    • isExplorationMapElement

      public boolean isExplorationMapElement()
    • isRenderedOnFrame

      public boolean isRenderedOnFrame()
    • hasMapColor

      public boolean hasMapColor()
    • getMapColor

      public int getMapColor()
    • byIcon

      public static MapDecoration.Type byIcon(byte p_77855_)
    • shouldTrackCount

      public boolean shouldTrackCount()
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface StringRepresentable