Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MapDecoration.Type>
private final byte
private final boolean
private final int
private final String
private final boolean
private final boolean
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MapDecoration.Type
byIcon
(byte p_77855_) byte
getIcon()
int
boolean
boolean
boolean
boolean
static MapDecoration.Type
Returns the enum constant of this class with the specified name.static MapDecoration.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER
-
FRAME
-
RED_MARKER
-
BLUE_MARKER
-
TARGET_X
-
TARGET_POINT
-
PLAYER_OFF_MAP
-
PLAYER_OFF_LIMITS
-
MANSION
-
MONUMENT
-
BANNER_WHITE
-
BANNER_ORANGE
-
BANNER_MAGENTA
-
BANNER_LIGHT_BLUE
-
BANNER_YELLOW
-
BANNER_LIME
-
BANNER_PINK
-
BANNER_GRAY
-
BANNER_LIGHT_GRAY
-
BANNER_CYAN
-
BANNER_PURPLE
-
BANNER_BLUE
-
BANNER_BROWN
-
BANNER_GREEN
-
BANNER_RED
-
BANNER_BLACK
-
RED_X
-
DESERT_VILLAGE
-
PLAINS_VILLAGE
-
SAVANNA_VILLAGE
-
SNOWY_VILLAGE
-
TAIGA_VILLAGE
-
JUNGLE_TEMPLE
-
SWAMP_HUT
-
-
Field Details
-
CODEC
-
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
-
Type
private Type(String p_299100_, boolean p_181304_, int p_298282_, boolean p_181305_, boolean p_301976_)
-
-
Method Details
-
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
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 nameNullPointerException
- 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
-
shouldTrackCount
public boolean shouldTrackCount() -
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-