public class Step extends TexturedMaterial
构造器和说明 |
---|
Step() |
Step(int type)
已过时。
不安全的参数
|
Step(int type,
byte data)
已过时。
不安全的参数
|
Step(Material type) |
Step(Material type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
Step |
clone() |
protected int |
getTextureIndex()
已过时。
不安全的参数
|
java.util.List<Material> |
getTextures()
检索可能的材质列表.列表的第一个元素将用来作为缺省值.
|
boolean |
isInverted()
看看一个台阶是否被反转了。
|
void |
setInverted(boolean inv)
设置反转状态.
|
protected void |
setTextureIndex(int idx)
已过时。
不安全的参数
|
java.lang.String |
toString() |
getMaterial, setMaterial
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Step()
@Deprecated public Step(int type)
type
- the raw type idpublic Step(Material type)
@Deprecated public Step(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Step(Material type, byte data)
type
- the typedata
- the raw data valuepublic java.util.List<Material> getTextures()
TexturedMaterial
原文:Retrieve a list of possible textures. The first element of the list will be used as a default.
getTextures
在类中 TexturedMaterial
public boolean isInverted()
public void setInverted(boolean inv)
原文:Set step inverted state
inv
- true 如果台阶是被反转的 (上半块), false 如果台阶一般状态 (下半块)@Deprecated protected int getTextureIndex()
TexturedMaterial
译注:该方法即为获取物品数据值。关于数据值,请参考Minecraft Wiki。
原文:Get material index from data
getTextureIndex
在类中 TexturedMaterial
@Deprecated protected void setTextureIndex(int idx)
TexturedMaterial
译注:该方法即为设置物品数据值。关于数据值,请参考Minecraft Wiki。
原文:Set material index
setTextureIndex
在类中 TexturedMaterial
idx
- 物品的材质类型public Step clone()
clone
在类中 TexturedMaterial
public java.lang.String toString()
toString
在类中 TexturedMaterial