CloneableBlockData.@Deprecated public class Cake extends MaterialData
| Constructor | Description |
|---|---|
Cake() |
Deprecated.
|
Cake(Material type) |
Deprecated.
|
Cake(Material type,
byte data) |
Deprecated.
Magic value
|
| Modifier and Type | Method | Description |
|---|---|---|
Cake |
clone() |
Deprecated.
|
int |
getSlicesEaten() |
Deprecated.
Gets the number of slices eaten from this cake
|
int |
getSlicesRemaining() |
Deprecated.
Gets the number of slices remaining on this cake
|
void |
setSlicesEaten(int n) |
Deprecated.
Sets the number of slices eaten from this cake
|
void |
setSlicesRemaining(int n) |
Deprecated.
Sets the number of slices remaining on this cake
|
String |
toString() |
Deprecated.
|
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 String toString()
toString in class MaterialDatapublic Cake clone()
clone in class MaterialDataCopyright © 2019. All rights reserved.