类 Hopper

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

@Deprecated(since="1.14.1") public class Hopper extends MaterialData implements Directional, Redstone
已过时。
所有 MaterialData 的用法均已弃用并可能被移除. 请使用 BlockData.
代表一个处于激活或停用状态并面向特定方向的漏斗。
另请参阅:
  • 字段详细资料

    • DEFAULT_DIRECTION

      protected static final BlockFace DEFAULT_DIRECTION
      已过时。
    • DEFAULT_ACTIVE

      protected static final boolean DEFAULT_ACTIVE
      已过时。
      另请参阅:
  • 构造器详细资料

    • Hopper

      public Hopper()
      已过时。
      构造一个面向默认方向(下)且初始激活的漏斗。

      原文:Constructs a hopper facing the default direction (down) and initially active.

    • Hopper

      public Hopper(BlockFace facingDirection)
      已过时。
      构造一个面向指定方向且初始激活的漏斗。

      原文:Constructs a hopper facing the specified direction and initially active.

      参数:
      facingDirection - 漏斗面向的方向
      另请参阅:
    • Hopper

      public Hopper(BlockFace facingDirection, boolean isActive)
      已过时。
      构造一个面向指定方向且激活或停用的漏斗。

      原文:Constructs a hopper facing the specified direction and either active or not.

      参数:
      facingDirection - 漏斗面向的方向
      isActive - 如果漏斗初始为激活状态则为 true,如果停用则为 false
      另请参阅:
    • Hopper

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

      @Deprecated(since="1.9") public Hopper(Material type, byte data)
      已过时。
      Magic value
      参数:
      type - 材料类型
      data - 原始数据值
  • 方法详细资料

    • setActive

      public void setActive(boolean isActive)
      已过时。
      设置漏斗是否激活。

      原文:Sets whether the hopper is active or not.

      参数:
      isActive - 如果漏斗激活则为 true,如果被红石信号停用则为 false
    • isActive

      public boolean isActive()
      已过时。
      检查漏斗是否激活。

      原文:Checks whether the hopper is active or not.

      返回:
      如果漏斗激活则为 true,如果停用则为 false
    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      已过时。
      设置此漏斗面向的方向。

      原文:Sets the direction this hopper is facing

      指定者:
      setFacingDirection 在接口中 Directional
      参数:
      face - 要设置的漏斗朝向
      另请参阅:
    • getFacing

      public BlockFace getFacing()
      已过时。
      获取此漏斗面向的方向。

      原文:Gets the direction this hopper is facing

      指定者:
      getFacing 在接口中 Directional
      返回:
      漏斗面向的方向
      另请参阅:
    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 MaterialData
    • clone

      public Hopper clone()
      已过时。
      覆盖:
      clone 在类中 MaterialData
    • isPowered

      public boolean isPowered()
      已过时。
      检查漏斗是否被充能。

      原文:Checks if the hopper is powered.

      指定者:
      isPowered 在接口中 Redstone
      返回:
      如果漏斗被充能则为 true