public class Cake extends MaterialData
Constructor and Description |
---|
Cake() |
Cake(int type)
Deprecated.
Magic value
|
Cake(int type,
byte data)
Deprecated.
Magic value
|
Cake(Material type) |
Cake(Material type,
byte data)
Deprecated.
Magic value
|
Modifier and Type | Method and 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
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Cake()
@Deprecated public Cake(int type)
public Cake(Material type)
@Deprecated public Cake(int type, byte data)
@Deprecated public Cake(Material type, byte data)
public 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 MaterialData
public Cake clone()
clone
in class MaterialData
Copyright © 2014. All rights reserved.