public class Command extends MaterialData implements Redstone
构造器和说明 |
---|
Command() |
Command(int type)
已过时。
不安全的参数
|
Command(int type,
byte data)
已过时。
不安全的参数
|
Command(Material type) |
Command(Material type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
Command |
clone() |
boolean |
isPowered()
获取这个方块是否充能.
|
void |
setPowered(boolean bool)
设置这个方块是否充能。
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Command()
@Deprecated public Command(int type)
type
- the raw type idpublic Command(Material type)
@Deprecated public Command(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Command(Material type, byte data)
type
- the typedata
- the raw data valuepublic boolean isPowered()
原文:Gets the current state of this Material, indicating if it's powered or unpowered
public void setPowered(boolean bool)
原文:Sets the current state of this Material
bool
- 这个方块是否充能public java.lang.String toString()
toString
在类中 MaterialData
public Command clone()
clone
在类中 MaterialData