org.bukkit.material
Class Cake

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.Cake
All Implemented Interfaces:
Cloneable

public class Cake
extends MaterialData


Constructor Summary
Cake()
           
Cake(int type)
           
Cake(int type, byte data)
           
Cake(Material type)
           
Cake(Material type, byte data)
           
 
Method Summary
 Cake clone()
           
 int getSlicesEaten()
          Gets the number of slices eaten from this cake
 int getSlicesRemaining()
          Gets the number of slices remaining on this cake
 void setSlicesEaten(int n)
          Sets the number of slices eaten from this cake
 void setSlicesRemaining(int n)
          Sets the number of slices remaining on this cake
 String toString()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cake

public Cake()

Cake

public Cake(int type)

Cake

public Cake(Material type)

Cake

public Cake(int type,
            byte data)

Cake

public Cake(Material type,
            byte data)
Method Detail

getSlicesEaten

public int getSlicesEaten()
Gets the number of slices eaten from this cake

Returns:
The number of slices eaten

getSlicesRemaining

public int getSlicesRemaining()
Gets the number of slices remaining on this cake

Returns:
The number of slices remaining

setSlicesEaten

public void setSlicesEaten(int n)
Sets the number of slices eaten from this cake

Parameters:
n - The number of slices eaten

setSlicesRemaining

public void setSlicesRemaining(int n)
Sets the number of slices remaining on this cake

Parameters:
n - The number of slices remaining

toString

public String toString()
Overrides:
toString in class MaterialData

clone

public Cake clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.