java.lang.Cloneable
public class Cake extends MaterialData
Constructor | 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 | 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, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public 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 java.lang.String toString()
toString
in class MaterialData
public Cake clone()
clone
in class MaterialData
Copyright © 2018. All rights reserved.