Package org.bukkit

Enum Art

java.lang.Object
java.lang.Enum<Art>
org.bukkit.Art
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Art>, java.lang.constant.Constable

public enum Art
extends java.lang.Enum<Art>
Represents the art on a painting
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    ALBAN  
    AZTEC  
    AZTEC2  
    BOMB  
    BURNINGSKULL  
    BUST  
    COURBET  
    CREEBET  
    DONKEYKONG  
    FIGHTERS  
    GRAHAM  
    KEBAB  
    MATCH  
    PIGSCENE  
    PLANT  
    POINTER  
    POOL  
    SEA  
    SKELETON  
    SKULL_AND_ROSES  
    STAGE  
    SUNSET  
    VOID  
    WANDERER  
    WASTELAND  
    WITHER  
  • Method Summary

    Modifier and Type Method Description
    int getBlockHeight()
    Gets the height of the painting, in blocks
    int getBlockWidth()
    Gets the width of the painting, in blocks
    static Art getById​(int id)
    Deprecated.
    Magic value
    static Art getByName​(java.lang.String name)
    Get a painting by its unique name
    int getId()
    Deprecated.
    Magic value
    static Art valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static Art[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static Art[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Art valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - 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

      @Deprecated public int getId()
      Deprecated.
      Magic value
      Get the ID of this painting.
      Returns:
      The ID of this painting
    • getById

      @Deprecated public static Art getById​(int id)
      Deprecated.
      Magic value
      Get a painting by its numeric ID
      Parameters:
      id - The ID
      Returns:
      The painting
    • getByName

      public static Art getByName​(java.lang.String name)
      Get a painting by its unique name

      This ignores underscores and capitalization

      Parameters:
      name - The name
      Returns:
      The painting