public abstract class TexturedMaterial extends MaterialData
构造器和说明 |
---|
TexturedMaterial(int type)
已过时。
不安全的参数
|
TexturedMaterial(int type,
byte data)
已过时。
不安全的参数
|
TexturedMaterial(Material m) |
TexturedMaterial(Material type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
TexturedMaterial |
clone() |
Material |
getMaterial()
获取这个方块是由什么物品制成的。
|
protected int |
getTextureIndex()
已过时。
不安全的参数
|
abstract java.util.List<Material> |
getTextures()
检索可能的材质列表.列表的第一个元素将用来作为缺省值.
|
void |
setMaterial(Material material)
设置这个方块是由什么物品制成的.
|
protected void |
setTextureIndex(int idx)
已过时。
不安全的参数
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public TexturedMaterial(Material m)
@Deprecated public TexturedMaterial(int type)
type
- the raw type id@Deprecated public TexturedMaterial(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public TexturedMaterial(Material type, byte data)
type
- the typedata
- the raw data valuepublic abstract java.util.List<Material> getTextures()
原文:Retrieve a list of possible textures. The first element of the list will be used as a default.
public Material getMaterial()
原文:Gets the current Material this block is made of
public void setMaterial(Material material)
原文:Sets the material this block is made of
material
- 这个方块由什么物品制成@Deprecated protected int getTextureIndex()
译注:该方法即为获取物品数据值。关于数据值,请参考Minecraft Wiki。
原文:Get material index from data
@Deprecated protected void setTextureIndex(int idx)
译注:该方法即为设置物品数据值。关于数据值,请参考Minecraft Wiki。
原文:Set material index
idx
- 物品的材质类型public java.lang.String toString()
toString
在类中 MaterialData
public TexturedMaterial clone()
clone
在类中 MaterialData