Enum Class PaintingMeta.Variant
- All Implemented Interfaces:
Serializable
,Comparable<PaintingMeta.Variant>
,Constable
,net.kyori.adventure.key.Keyed
,ProtocolObject
,StaticProtocolObject
- Enclosing class:
PaintingMeta
public static enum PaintingMeta.Variant
extends Enum<PaintingMeta.Variant>
implements StaticProtocolObject
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable PaintingMeta.Variant
fromId
(int id) static @Nullable PaintingMeta.Variant
fromNamespaceId
(@Nullable String namespaceId) static @Nullable PaintingMeta.Variant
fromNamespaceId
(@Nullable NamespaceID namespaceId) int
height()
int
id()
@NotNull NamespaceID
static PaintingMeta.Variant
Returns the enum constant of this class with the specified name.static PaintingMeta.Variant[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.int
width()
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.minestom.server.registry.ProtocolObject
key, name
-
Enum Constant Details
-
KEBAB
-
AZTEC
-
ALBAN
-
AZTEC2
-
BOMB
-
PLANT
-
WASTELAND
-
POOL
-
COURBET
-
SEA
-
SUNSET
-
CREEBET
-
WANDERER
-
GRAHAM
-
MATCH
-
BUST
-
STAGE
-
VOID
-
SKULL_AND_ROSES
-
WITHER
-
FIGHTERS
-
POINTER
-
PIGSCENE
-
BURNING_SKULL
-
SKELETON
-
EARTH
-
WIND
-
WATER
-
FIRE
-
DONKEY_KONG
-
-
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
-
fromId
-
fromNamespaceId
@Nullable public static @Nullable PaintingMeta.Variant fromNamespaceId(@Nullable @Nullable String namespaceId) -
fromNamespaceId
@Nullable public static @Nullable PaintingMeta.Variant fromNamespaceId(@Nullable @Nullable NamespaceID namespaceId) -
id
public int id()- Specified by:
id
in interfaceStaticProtocolObject
-
width
public int width() -
height
public int height() -
namespace
- Specified by:
namespace
in interfaceProtocolObject
-