Package org.bukkit.material
Class Command
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Command
@Deprecated(since="1.13",
            forRemoval=true)
public class Command
extends MaterialData
implements Redstone
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a command block
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Gets the current state of this Material, indicating if it's powered or unpoweredvoidsetPowered(boolean bool) Deprecated, for removal: This API element is subject to removal in a future version.Sets the current state of this MaterialtoString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
Commandpublic Command()Deprecated, for removal: This API element is subject to removal in a future version.
- 
CommandDeprecated, for removal: This API element is subject to removal in a future version.
- 
CommandDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
isPoweredpublic boolean isPowered()Deprecated, for removal: This API element is subject to removal in a future version.Gets the current state of this Material, indicating if it's powered or unpowered
- 
setPoweredpublic void setPowered(boolean bool) Deprecated, for removal: This API element is subject to removal in a future version.Sets the current state of this Material- Parameters:
- bool- whether or not the command block is powered
 
- 
toStringDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- toStringin class- MaterialData
 
- 
cloneDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- clonein class- MaterialData
 
 
- 
BlockData.