Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.Art Enum Reference

Public Member Functions

int getBlockWidth ()
 
int getBlockHeight ()
 
int getId ()
 

Static Public Member Functions

static Art getById (int id)
 
static Art getByName (String name)
 
 [static initializer]
 

Public Attributes

 KEBAB =(0, 1, 1)
 
 AZTEC =(1, 1, 1)
 
 ALBAN =(2, 1, 1)
 
 AZTEC2 =(3, 1, 1)
 
 BOMB =(4, 1, 1)
 
 PLANT =(5, 1, 1)
 
 WASTELAND =(6, 1, 1)
 
 POOL =(7, 2, 1)
 
 COURBET =(8, 2, 1)
 
 SEA =(9, 2, 1)
 
 SUNSET =(10, 2, 1)
 
 CREEBET =(11, 2, 1)
 
 WANDERER =(12, 1, 2)
 
 GRAHAM =(13, 1, 2)
 
 MATCH =(14, 2, 2)
 
 BUST =(15, 2, 2)
 
 STAGE =(16, 2, 2)
 
 VOID =(17, 2, 2)
 
 SKULL_AND_ROSES =(18, 2, 2)
 
 WITHER =(19, 2, 2)
 
 FIGHTERS =(20, 4, 2)
 
 POINTER =(21, 4, 4)
 
 PIGSCENE =(22, 4, 4)
 
 BURNINGSKULL =(23, 4, 4)
 
 SKELETON =(24, 4, 3)
 
 DONKEYKONG =(25, 4, 3)
 
int width
 
int height
 

Detailed Description

Represents the art on a painting

Definition at line 12 of file Art.java.

Member Function Documentation

int org.bukkit.Art.getBlockHeight ( )

Gets the height of the painting, in blocks

Returns
The height of the painting, in blocks

Definition at line 64 of file Art.java.

64  {
65  return height;
66  }
int org.bukkit.Art.getBlockWidth ( )

Gets the width of the painting, in blocks

Returns
The width of the painting, in blocks

Definition at line 55 of file Art.java.

55  {
56  return width;
57  }
static Art org.bukkit.Art.getById ( int  id)
static

Get a painting by its numeric ID

Parameters
idThe ID
Returns
The painting
Deprecated:
Magic value

Definition at line 87 of file Art.java.

87  {
88  return BY_ID.get(id);
89  }
static Art org.bukkit.Art.getByName ( String  name)
static

Get a painting by its unique name

This ignores underscores and capitalization

Parameters
nameThe name
Returns
The painting

Definition at line 99 of file Art.java.

99  {
100  Validate.notNull(name, "Name cannot be null");
101 
102  return BY_NAME.get(name.toLowerCase().replaceAll("_", ""));
103  }
int org.bukkit.Art.getId ( )

Get the ID of this painting.

Returns
The ID of this painting
Deprecated:
Magic value

Definition at line 75 of file Art.java.

75  {
76  return id;
77  }

The documentation for this enum was generated from the following file: