Package org.bukkit.material
Class Cake
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Cake
- All Implemented Interfaces:
Cloneable
Deprecated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.int
Deprecated.Gets the number of slices eaten from this cakeint
Deprecated.Gets the number of slices remaining on this cakevoid
setSlicesEaten(int n)
Deprecated.Sets the number of slices eaten from this cakevoid
setSlicesRemaining(int n)
Deprecated.Sets the number of slices remaining on this caketoString()
Deprecated.Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Cake
public Cake()Deprecated. -
Cake
Deprecated. -
Cake
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
getSlicesEaten
public int getSlicesEaten()Deprecated.Gets the number of slices eaten from this cake- Returns:
- The number of slices eaten
-
getSlicesRemaining
public int getSlicesRemaining()Deprecated.Gets the number of slices remaining on this cake- Returns:
- The number of slices remaining
-
setSlicesEaten
public void setSlicesEaten(int n)Deprecated.Sets the number of slices eaten from this cake- Parameters:
n
- The number of slices eaten
-
setSlicesRemaining
public void setSlicesRemaining(int n)Deprecated.Sets the number of slices remaining on this cake- Parameters:
n
- The number of slices remaining
-
toString
Deprecated.- Overrides:
toString
in classMaterialData
-
clone
Deprecated.- Overrides:
clone
in classMaterialData
-
BlockData
.