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, toItemStackpublic Cake()
@Deprecated public Cake(int type)
type - the raw type idpublic Cake(Material type)
@Deprecated public Cake(int type, byte data)
type - the raw type iddata - the raw data value@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 © 2022. All rights reserved.