Package org.bukkit
Enum Class Art
- All Implemented Interfaces:
Serializable
,Comparable<Art>
,Constable
,Keyed
,Keyed
Represents the art on a painting
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the height of the painting, in blocksint
Gets the width of the painting, in blocksgetById
(int id) Get a painting by its numeric IDGet a painting by its unique nameint
getId()
Get the ID of this painting.getKey()
Deprecated.static Art
Returns the enum constant of this class with the specified name.static Art[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
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
-
DONKEY_KONG
-
EARTH
-
WIND
-
WATER
-
FIRE
-
BAROQUE
-
HUMBLE
-
MEDITATIVE
-
PRAIRIE_RIDE
-
UNPACKED
-
BACKYARD
-
BOUQUET
-
CAVEBIRD
-
CHANGING
-
COTAN
-
ENDBOSS
-
FERN
-
FINDING
-
LOWMIST
-
ORB
-
OWLEMONS
-
PASSAGE
-
POND
-
SUNFLOWERS
-
TIDES
-
-
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
-
getBlockWidth
public int getBlockWidth()Gets the width of the painting, in blocks- Returns:
- The width of the painting, in blocks
-
getBlockHeight
public int getBlockHeight()Gets the height of the painting, in blocks- Returns:
- The height of the painting, in blocks
-
getId
Get the ID of this painting.- Returns:
- The ID of this painting
- API Note:
- Internal Use Only
-
getKey
Deprecated.useRegistry.getKey(Keyed)
,RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey)
, andRegistryKey.PAINTING_VARIANT
. Painting variants can exist without a key.Description copied from interface:Keyed
Return the namespaced identifier for this object. -
getById
Get a painting by its numeric ID- Parameters:
id
- The ID- Returns:
- The painting
- API Note:
- Internal Use Only
-
getByName
Get a painting by its unique nameThis ignores underscores and capitalization
- Parameters:
name
- The name- Returns:
- The painting
-
Registry.getKey(Keyed)
,RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey)
, andRegistryKey.PAINTING_VARIANT
.