Interface Art

All Superinterfaces:
Comparable<Art>, net.kyori.adventure.key.Keyed, 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 RegistryAccess.registryAccess() and RegistryKey.PAINTING_VARIANT.

Since:
1.0.0
  • Field Details

    • ALBAN

      static final Art ALBAN
      Since:
      1.0.0
    • AZTEC

      static final Art AZTEC
      Since:
      1.0.0
    • AZTEC2

      static final Art AZTEC2
      Since:
      1.0.0
    • BACKYARD

      static final Art BACKYARD
      Since:
      1.21
    • BAROQUE

      static final Art BAROQUE
      Since:
      1.21
    • BOMB

      static final Art BOMB
      Since:
      1.0.0
    • BOUQUET

      static final Art BOUQUET
      Since:
      1.21
    • BURNING_SKULL

      static final Art BURNING_SKULL
      Since:
      1.13
    • BUST

      static final Art BUST
      Since:
      1.0.0
    • CAVEBIRD

      static final Art CAVEBIRD
      Since:
      1.21
    • CHANGING

      static final Art CHANGING
      Since:
      1.21
    • COTAN

      static final Art COTAN
      Since:
      1.21
    • COURBET

      static final Art COURBET
      Since:
      1.0.0
    • CREEBET

      static final Art CREEBET
      Since:
      1.0.0
    • DENNIS

      static final Art DENNIS
      Since:
      1.21.7
    • DONKEY_KONG

      static final Art DONKEY_KONG
      Since:
      1.13
    • EARTH

      static final Art EARTH
      Since:
      1.19
    • ENDBOSS

      static final Art ENDBOSS
      Since:
      1.21
    • FERN

      static final Art FERN
      Since:
      1.21
    • FIGHTERS

      static final Art FIGHTERS
      Since:
      1.0.0
    • FINDING

      static final Art FINDING
      Since:
      1.21
    • FIRE

      static final Art FIRE
      Since:
      1.19
    • GRAHAM

      static final Art GRAHAM
      Since:
      1.0.0
    • HUMBLE

      static final Art HUMBLE
      Since:
      1.21
    • KEBAB

      static final Art KEBAB
      Since:
      1.0.0
    • LOWMIST

      static final Art LOWMIST
      Since:
      1.21
    • MATCH

      static final Art MATCH
      Since:
      1.0.0
    • MEDITATIVE

      static final Art MEDITATIVE
      Since:
      1.21
    • ORB

      static final Art ORB
      Since:
      1.21
    • OWLEMONS

      static final Art OWLEMONS
      Since:
      1.21
    • PASSAGE

      static final Art PASSAGE
      Since:
      1.21
    • PIGSCENE

      static final Art PIGSCENE
      Since:
      1.0.0
    • PLANT

      static final Art PLANT
      Since:
      1.0.0
    • POINTER

      static final Art POINTER
      Since:
      1.0.0
    • POND

      static final Art POND
      Since:
      1.21
    • POOL

      static final Art POOL
      Since:
      1.0.0
    • PRAIRIE_RIDE

      static final Art PRAIRIE_RIDE
      Since:
      1.21
    • SEA

      static final Art SEA
      Since:
      1.0.0
    • SKELETON

      static final Art SKELETON
      Since:
      1.0.0
    • SKULL_AND_ROSES

      static final Art SKULL_AND_ROSES
      Since:
      1.0.0
    • STAGE

      static final Art STAGE
      Since:
      1.0.0
    • SUNFLOWERS

      static final Art SUNFLOWERS
      Since:
      1.21
    • SUNSET

      static final Art SUNSET
      Since:
      1.0.0
    • TIDES

      static final Art TIDES
      Since:
      1.21
    • UNPACKED

      static final Art UNPACKED
      Since:
      1.21
    • VOID

      static final Art VOID
      Since:
      1.0.0
    • WANDERER

      static final Art WANDERER
      Since:
      1.0.0
    • WASTELAND

      static final Art WASTELAND
      Since:
      1.0.0
    • WATER

      static final Art WATER
      Since:
      1.19
    • WIND

      static final Art WIND
      Since:
      1.19
    • WITHER

      static final Art WITHER
      Since:
      1.4.5
  • Method Details

    • getBlockWidth

      int getBlockWidth()
      Gets the width of the painting, in blocks
      Returns:
      The width of the painting, in blocks
      Since:
      1.0.0
    • getBlockHeight

      int getBlockHeight()
      Gets the height of the painting, in blocks
      Returns:
      The height of the painting, in blocks
      Since:
      1.0.0
    • getId

      @Deprecated(since="1.6.2", forRemoval=true) int getId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Magic value that is based on inconsistent, data-driven registry
      Get the ID of this painting.
      Returns:
      The ID of this painting
    • getKey

      @Deprecated(since="1.21", forRemoval=true) @NotNull @NotNull NamespacedKey getKey()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Keyed
      Return the namespaced identifier for this object.
      Specified by:
      getKey in interface Keyed
      Returns:
      this object's key
    • key

      @Deprecated(since="1.21", forRemoval=true) default @NotNull net.kyori.adventure.key.Key key()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Keyed
      Returns the unique identifier for this object.
      Specified by:
      key in interface net.kyori.adventure.key.Keyed
      Specified by:
      key in interface Keyed
      Returns:
      this object's key
    • title

      @Nullable net.kyori.adventure.text.Component title()
      Get the painting's title.
      Returns:
      the title
      Since:
      1.21.3
    • author

      @Nullable net.kyori.adventure.text.Component author()
      Get the painting's author.
      Returns:
      the author
      Since:
      1.21.3
    • assetId

      @NotNull net.kyori.adventure.key.Key assetId()
      Get the painting's asset id
      Returns:
      the asset id
      Since:
      1.21.3
    • getById

      @Deprecated(since="1.6.2", forRemoval=true) @Nullable static @Nullable Art getById(int id)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Magic value that is based on inconsistent, data-driven registry
      Get a painting by its numeric ID
      Parameters:
      id - The ID
      Returns:
      The painting
    • getByName

      @Deprecated(since="1.21.3") @Nullable static @Nullable Art getByName(@NotNull @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
      Since:
      1.0.0
    • 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, use Registry.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.
      Returns:
      an array of all known arts.