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(since="1.13",
            forRemoval=true)
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 SummaryConstructorsConstructorDescriptionDeprecated, 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 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 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.ExtendedRailsgetConvertedData, isCurve, setDirectionMethods inherited from class org.bukkit.material.RailsgetDirection, isOnSlope, toStringMethods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
PoweredRailpublic PoweredRail()Deprecated, for removal: This API element is subject to removal in a future version.
- 
PoweredRailDeprecated, for removal: This API element is subject to removal in a future version.
- 
PoweredRailDeprecated.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.Description copied from interface:RedstoneGets the current state of this Material, indicating if it's powered or unpowered
- 
setPoweredpublic 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
 
- 
cloneDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- clonein class- ExtendedRails
 
 
- 
BlockData.