public class Command extends MaterialData implements Redstone
Constructor | Description |
---|---|
Command() |
|
Command(Material type) |
|
Command(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | Description |
---|---|---|
Command |
clone() |
|
boolean |
isPowered() |
Gets the current state of this Material, indicating if it's powered or
unpowered
|
void |
setPowered(boolean bool) |
Sets the current state of this Material
|
String |
toString() |
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
public Command()
public Command(Material type)
@Deprecated public Command(Material type, byte data)
type
- the typedata
- the raw data valuepublic boolean isPowered()
public void setPowered(boolean bool)
bool
- whether or not the command block is poweredpublic String toString()
toString
in class MaterialData
public Command clone()
clone
in class MaterialData
Copyright © 2020. All rights reserved.