程序包 org.bukkit.material

# 类 PistonBaseMaterial

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.PistonBaseMaterial

所有已实现的接口:
  `Cloneable`, `Directional`, `Redstone`

@Deprecated public class PistonBaseMaterial extends MaterialData implements Directional, Redstone
已过时。
all usage of MaterialData is deprecated and subject to removal. Use `BlockData`.
Material data for the piston base block

- ## 构造器概要

  构造器
  构造器
  说明
  `PistonBaseMaterial(Material type)`
  已过时。
  `PistonBaseMaterial(Material type, byte data)`
  已过时。
  Magic value

- ## 方法概要

  修饰符和类型
  方法
  说明
  `PistonBaseMaterial`
  `clone()`
  已过时。
  `BlockFace`
  `getFacing()`
  已过时。
  Gets the direction this block is facing
  `boolean`
  `isPowered()`
  已过时。
  Gets the current state of this Material, indicating if it's powered or unpowered
  `boolean`
  `isSticky()`
  已过时。
  Checks if this piston base is sticky, and returns true if so
  `void`
  `setFacingDirection(BlockFace face)`
  已过时。
  Sets the direction that this block is facing in
  `void`
  `setPowered(boolean powered)`
  已过时。
  Sets the current state of this piston

  ### 从类继承的方法 org.bukkit.material.MaterialData

  `equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack, toString`

  ### 从类继承的方法 java.lang.Object

  `finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## 构造器详细资料

  - ### PistonBaseMaterial

    public PistonBaseMaterial(Material type)
    已过时。

  - ### PistonBaseMaterial

    @Deprecated public PistonBaseMaterial(Material type, byte data)
    已过时。
    Magic value
    Constructs a PistonBaseMaterial.
    参数:
      `type` - the material type to use
      `data` - the raw data value

- ## 方法详细资料

  - ### setFacingDirection

    public void setFacingDirection(BlockFace face)
    已过时。
    从接口复制的说明: `Directional`
    Sets the direction that this block is facing in
    指定者:
      `setFacingDirection` 在接口中 `Directional`
    参数:
      `face` - The facing direction

  - ### getFacing

    public BlockFace getFacing()
    已过时。
    从接口复制的说明: `Directional`
    Gets the direction this block is facing
    指定者:
      `getFacing` 在接口中 `Directional`
    返回:
      the direction this block is facing

  - ### isPowered

    public boolean isPowered()
    已过时。
    从接口复制的说明: `Redstone`
    Gets the current state of this Material, indicating if it's powered or unpowered
    指定者:
      `isPowered` 在接口中 `Redstone`
    返回:
      true if powered, otherwise false

  - ### setPowered

    public void setPowered(boolean powered)
    已过时。
    Sets the current state of this piston
    参数:
      `powered` - true if the piston is extended & powered, or false

  - ### isSticky

    public boolean isSticky()
    已过时。
    Checks if this piston base is sticky, and returns true if so
    返回:
      true if this piston is "sticky", or false

  - ### clone

    public PistonBaseMaterial clone()
    已过时。
    覆盖:
      `clone` 在类中 `MaterialData`