Package org.bukkit
Interface Art
Represents the art on a painting.
The arts listed in this interface are present in the default server
or can be enabled via a FeatureFlag
.
There may be additional arts present in the server, for example from a DataPack
which can be accessed via Registry.ART
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
static final Art
-
Method Summary
Modifier and TypeMethodDescriptionassetId()
Get the painting's asset idauthor()
Get the painting's author.int
Gets the height of the painting, in blocksint
Gets the width of the painting, in blocksgetById
(int id) Deprecated.Magic valueDeprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.int
getId()
Deprecated.Magic valuegetKey()
Deprecated, for removal: This API element is subject to removal in a future version.key()
Deprecated, for removal: This API element is subject to removal in a future version.title()
Get the painting's title.Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.values()
Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator()
.
-
Field 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
-
getBlockWidth
int getBlockWidth()Gets the width of the painting, in blocks- Returns:
- The width of the painting, in blocks
-
getBlockHeight
int getBlockHeight()Gets the height of the painting, in blocks- Returns:
- The height of the painting, in blocks
-
getId
Deprecated.Magic valueGet the ID of this painting.- Returns:
- The ID of this painting
-
getKey
Deprecated, for removal: This API element is subject to removal in a future version.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. -
key
Deprecated, for removal: This API element is subject to removal in a future version.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
Returns the unique identifier for this object. -
title
Get the painting's title.- Returns:
- the title
-
author
Get the painting's author.- Returns:
- the author
-
assetId
Get the painting's asset id- Returns:
- the asset id
-
getById
Deprecated.Magic valueGet a painting by its numeric ID- Parameters:
id
- The ID- Returns:
- The painting
-
getByName
Deprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.Get a painting by its unique nameThis ignores capitalization
- Parameters:
name
- The name- Returns:
- The painting
-
valueOf
@NotNull @Deprecated(since="1.21.3", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Art valueOf(@NotNull @NotNull String name) Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.- Parameters:
name
- of the art.- Returns:
- the art with the given name.
-
values
@NotNull @Deprecated(since="1.21.3", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Art[] values()Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator()
.- Returns:
- an array of all known arts.
-