Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.material.Cauldron Class Reference
Inheritance diagram for org.bukkit.material.Cauldron:
org.bukkit.material.MaterialData

Public Member Functions

 Cauldron (int type, byte data)
 
 Cauldron (byte data)
 
boolean isFull ()
 
boolean isEmpty ()
 
String toString ()
 
Cauldron clone ()
 
- Public Member Functions inherited from org.bukkit.material.MaterialData
 MaterialData (final int type)
 
 MaterialData (final Material type)
 
 MaterialData (final int type, final byte data)
 
 MaterialData (final Material type, final byte data)
 
byte getData ()
 
void setData (byte data)
 
Material getItemType ()
 
int getItemTypeId ()
 
ItemStack toItemStack ()
 
ItemStack toItemStack (int amount)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Detailed Description

Represents a cauldron

Definition at line 8 of file Cauldron.java.

Constructor & Destructor Documentation

org.bukkit.material.Cauldron.Cauldron ( int  type,
byte  data 
)
Deprecated:
Magic value

Definition at line 21 of file Cauldron.java.

21  {
22  super(type, data);
23  }
org.bukkit.material.Cauldron.Cauldron ( byte  data)
Deprecated:
Magic value

Definition at line 30 of file Cauldron.java.

30  {
31  super(Material.CAULDRON, data);
32  }

Member Function Documentation

boolean org.bukkit.material.Cauldron.isEmpty ( )

Check if the cauldron is empty.

Returns
True if it is empty.

Definition at line 48 of file Cauldron.java.

References org.bukkit.material.MaterialData.getData().

48  {
49  return getData() <= CAULDRON_EMPTY;
50  }
boolean org.bukkit.material.Cauldron.isFull ( )

Check if the cauldron is full.

Returns
True if it is full.

Definition at line 39 of file Cauldron.java.

References org.bukkit.material.MaterialData.getData().

39  {
40  return getData() >= CAULDRON_FULL;
41  }

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