Package org.bukkit

Interface Art

All Superinterfaces:
Comparable<Art>, Keyed, OldEnum<Art>

public interface Art extends OldEnum<Art>, Keyed
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 Details

    • KEBAB

      static final Art KEBAB
    • AZTEC

      static final Art AZTEC
    • ALBAN

      static final Art ALBAN
    • AZTEC2

      static final Art AZTEC2
    • BOMB

      static final Art BOMB
    • PLANT

      static final Art PLANT
    • WASTELAND

      static final Art WASTELAND
    • POOL

      static final Art POOL
    • COURBET

      static final Art COURBET
    • SEA

      static final Art SEA
    • SUNSET

      static final Art SUNSET
    • CREEBET

      static final Art CREEBET
    • WANDERER

      static final Art WANDERER
    • GRAHAM

      static final Art GRAHAM
    • MATCH

      static final Art MATCH
    • BUST

      static final Art BUST
    • STAGE

      static final Art STAGE
    • VOID

      static final Art VOID
    • SKULL_AND_ROSES

      static final Art SKULL_AND_ROSES
    • WITHER

      static final Art WITHER
    • FIGHTERS

      static final Art FIGHTERS
    • POINTER

      static final Art POINTER
    • PIGSCENE

      static final Art PIGSCENE
    • BURNING_SKULL

      static final Art BURNING_SKULL
    • SKELETON

      static final Art SKELETON
    • DONKEY_KONG

      static final Art DONKEY_KONG
    • EARTH

      static final Art EARTH
    • WIND

      static final Art WIND
    • WATER

      static final Art WATER
    • FIRE

      static final Art FIRE
    • BAROQUE

      static final Art BAROQUE
    • HUMBLE

      static final Art HUMBLE
    • MEDITATIVE

      static final Art MEDITATIVE
    • PRAIRIE_RIDE

      static final Art PRAIRIE_RIDE
    • UNPACKED

      static final Art UNPACKED
    • BACKYARD

      static final Art BACKYARD
    • BOUQUET

      static final Art BOUQUET
    • CAVEBIRD

      static final Art CAVEBIRD
    • CHANGING

      static final Art CHANGING
    • COTAN

      static final Art COTAN
    • ENDBOSS

      static final Art ENDBOSS
    • FERN

      static final Art FERN
    • FINDING

      static final Art FINDING
    • LOWMIST

      static final Art LOWMIST
    • ORB

      static final Art ORB
    • OWLEMONS

      static final Art OWLEMONS
    • PASSAGE

      static final Art PASSAGE
    • POND

      static final Art POND
    • SUNFLOWERS

      static final Art SUNFLOWERS
    • TIDES

      static final Art 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(since="1.6.2") int getId()
      Deprecated.
      Magic value
      Get the ID of this painting.
      Returns:
      The ID of this painting
    • getById

      @Deprecated(since="1.6.2") @Nullable static Art getById(int id)
      Deprecated.
      Magic value
      Get a painting by its numeric ID
      Parameters:
      id - The ID
      Returns:
      The painting
    • getByName

      @Deprecated(since="1.21.3") @Nullable static Art getByName(@NotNull String name)
      Deprecated.
      only for backwards compatibility, use Registry.get(NamespacedKey) instead.
      Get a painting by its unique name

      This ignores capitalization

      Parameters:
      name - The name
      Returns:
      The painting
    • valueOf

      @NotNull @Deprecated(since="1.21.3") static Art valueOf(@NotNull String name)
      Deprecated.
      only for backwards compatibility, use Registry.get(NamespacedKey) instead.
      Parameters:
      name - of the art.
      Returns:
      the art with the given name.
    • values

      @NotNull @Deprecated(since="1.21.3") static Art[] values()
      Deprecated.
      Returns:
      an array of all known arts.