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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
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 unpoweredvoid
setPowered
(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.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Command
public Command()Deprecated, for removal: This API element is subject to removal in a future version. -
Command
Deprecated, for removal: This API element is subject to removal in a future version. -
Command
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isPowered
public 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 -
setPowered
public 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
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classMaterialData
-
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clone
in classMaterialData
-
BlockData
.