Package org.bukkit.material
Class PoweredRail
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Rails
org.bukkit.material.ExtendedRails
org.bukkit.material.PoweredRail
@Deprecated(forRemoval=true,
since="1.13")
public class PoweredRail
extends ExtendedRails
implements Redstone
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a powered rail
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.PoweredRail
(Material type) Deprecated, for removal: This API element is subject to removal in a future version.PoweredRail
(Material type, byte data) Deprecated.Magic value -
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 isPowered) Deprecated, for removal: This API element is subject to removal in a future version.Set whether this PoweredRail should be powered or not.Methods inherited from class org.bukkit.material.ExtendedRails
getConvertedData, isCurve, setDirection
Methods inherited from class org.bukkit.material.Rails
getDirection, isOnSlope, toString
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
PoweredRail
public PoweredRail()Deprecated, for removal: This API element is subject to removal in a future version. -
PoweredRail
Deprecated, for removal: This API element is subject to removal in a future version. -
PoweredRail
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.Description copied from interface:Redstone
Gets the current state of this Material, indicating if it's powered or unpowered -
setPowered
public void setPowered(boolean isPowered) Deprecated, for removal: This API element is subject to removal in a future version.Set whether this PoweredRail should be powered or not.- Parameters:
isPowered
- whether or not the rail is powered
-
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clone
in classExtendedRails
-
BlockData
.