Package org.bukkit.material
Class Cake
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Cake
- All Implemented Interfaces:
- Cloneable
Deprecated, for removal: This API element is subject to removal in a future version.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.Gets the number of slices eaten from this cakeintDeprecated, for removal: This API element is subject to removal in a future version.Gets the number of slices remaining on this cakevoidsetSlicesEaten(int n) Deprecated, for removal: This API element is subject to removal in a future version.Sets the number of slices eaten from this cakevoidsetSlicesRemaining(int n) Deprecated, for removal: This API element is subject to removal in a future version.Sets the number of slices remaining on this caketoString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
Cakepublic Cake()Deprecated, for removal: This API element is subject to removal in a future version.
- 
CakeDeprecated, for removal: This API element is subject to removal in a future version.
- 
CakeDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
getSlicesEatenpublic int getSlicesEaten()Deprecated, for removal: This API element is subject to removal in a future version.Gets the number of slices eaten from this cake- Returns:
- The number of slices eaten
 
- 
getSlicesRemainingpublic int getSlicesRemaining()Deprecated, for removal: This API element is subject to removal in a future version.Gets the number of slices remaining on this cake- Returns:
- The number of slices remaining
 
- 
setSlicesEatenpublic void setSlicesEaten(int n) Deprecated, for removal: This API element is subject to removal in a future version.Sets the number of slices eaten from this cake- Parameters:
- n- The number of slices eaten
 
- 
setSlicesRemainingpublic void setSlicesRemaining(int n) Deprecated, for removal: This API element is subject to removal in a future version.Sets the number of slices remaining on this cake- Parameters:
- n- The number of slices remaining
 
- 
toStringDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- toStringin class- MaterialData
 
- 
cloneDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- clonein class- MaterialData
 
 
- 
BlockData.