类 PistonBaseMaterial

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.PistonBaseMaterial
所有已实现的接口:
Cloneable, Directional, Redstone

@Deprecated(since="1.14.1") public class PistonBaseMaterial extends MaterialData implements Directional, Redstone
已过时。
所有 MaterialData 的使用都已弃用并可能被移除。 使用 BlockData。
活塞底座方块的材质数据
  • 构造器详细资料

    • PistonBaseMaterial

      public PistonBaseMaterial(Material type)
      已过时。
    • PistonBaseMaterial

      @Deprecated(since="1.6.2") public PistonBaseMaterial(Material type, byte data)
      已过时。
      魔法值
      构造一个PistonBaseMaterial。
      参数:
      type - 要使用的材质类型
      data - 原始数据值
  • 方法详细资料

    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      已过时。
      从接口复制的说明: Directional
      设置此方块的朝向.

      原文: Sets the direction that this block is facing in

      指定者:
      setFacingDirection 在接口中 Directional
      参数:
      face - 朝向
    • getFacing

      public BlockFace getFacing()
      已过时。
      从接口复制的说明: Directional
      获取此方块的朝向.

      原文: Gets the direction this block is facing

      指定者:
      getFacing 在接口中 Directional
      返回:
      此方块的朝向
    • isPowered

      public boolean isPowered()
      已过时。
      从接口复制的说明: Redstone
      获取此材料的当前状态, 表示其是否被充能.

      原文: Gets the current state of this Material, indicating if it's powered or unpowered

      指定者:
      isPowered 在接口中 Redstone
      返回:
      如果被充能则返回true, 否则返回false
    • setPowered

      public void setPowered(boolean powered)
      已过时。
      设置此活塞的当前状态
      参数:
      powered - 如果活塞已伸出并通电则为true,否则为false

      原文:Sets the current state of this piston

    • isSticky

      public boolean isSticky()
      已过时。
      检查此活塞底座是否为粘性活塞,如果是则返回true
      返回:
      如果此活塞是"粘性"的则返回true,否则返回false

      原文:Checks if this piston base is sticky, and returns true if so

    • clone

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