public class Cake extends MaterialData
构造器和说明 |
---|
Cake() |
Cake(int type)
已过时。
不安全的参数
|
Cake(int type,
byte data)
已过时。
不安全的参数
|
Cake(Material type) |
Cake(Material type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
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)
设置这个蛋糕吃了多少片.
|
void |
setSlicesRemaining(int n)
设置这个蛋糕还剩多少片.
|
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()
原文:Gets the number of slices eaten from this cake
public int getSlicesRemaining()
原文:Gets the number of slices remaining on this cake
public void setSlicesEaten(int n)
原文:Sets the number of slices eaten from this cake
n
- 蛋糕被吃的片数public void setSlicesRemaining(int n)
原文:Sets the number of slices remaining on this cake
n
- 蛋糕剩于的片数public java.lang.String toString()
toString
在类中 MaterialData
public Cake clone()
clone
在类中 MaterialData