Package org.bukkit.material
Class Cake
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Cake
- All Implemented Interfaces:
java.lang.Cloneable
public class Cake extends MaterialData
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Cake
clone()
int
getSlicesEaten()
Gets the number of slices eaten from this cakeint
getSlicesRemaining()
Gets the number of slices remaining on this cakevoid
setSlicesEaten(int n)
Sets the number of slices eaten from this cakevoid
setSlicesRemaining(int n)
Sets the number of slices remaining on this cakejava.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Cake
public Cake() -
Cake
@Deprecated public Cake(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
Cake
-
Cake
@Deprecated public Cake(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
Cake
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
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 java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-