java.lang.Cloneablepublic class Cake extends MaterialData
| Constructor | Description | 
|---|---|
| Cake() | |
| Cake(Material type) | |
| Cake(Material type,
    byte data) | Deprecated.
 Magic value | 
| Modifier and Type | Method | Description | 
|---|---|---|
| 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 | 
| java.lang.String | toString() | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackpublic Cake()
public Cake(Material type)
@Deprecated public Cake(Material type, byte data)
type - the typedata - the raw data valuepublic int getSlicesEaten()
public int getSlicesRemaining()
public void setSlicesEaten(int n)
n - The number of slices eatenpublic void setSlicesRemaining(int n)
n - The number of slices remainingpublic java.lang.String toString()
toString in class MaterialDatapublic Cake clone()
clone in class MaterialDataCopyright © 2018. All rights reserved.