类 Hopper
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Hopper
- 所有已实现的接口:
Cloneable,Directional,Redstone
@Deprecated(since="1.14.1")
public class Hopper
extends MaterialData
implements Directional, Redstone
已过时。
代表一个处于激活或停用状态并面向特定方向的漏斗。
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
字段详细资料
-
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
已过时。构造一个面向指定方向且初始激活的漏斗。原文:Constructs a hopper facing the specified direction and initially active.
- 参数:
facingDirection- 漏斗面向的方向- 另请参阅:
-
Hopper
已过时。构造一个面向指定方向且激活或停用的漏斗。原文:Constructs a hopper facing the specified direction and either active or not.
- 参数:
facingDirection- 漏斗面向的方向isActive- 如果漏斗初始为激活状态则为 true,如果停用则为 false- 另请参阅:
-
Hopper
已过时。 -
Hopper
已过时。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
已过时。设置此漏斗面向的方向。原文:Sets the direction this hopper is facing
- 指定者:
setFacingDirection在接口中Directional- 参数:
face- 要设置的漏斗朝向- 另请参阅:
-
getFacing
已过时。获取此漏斗面向的方向。原文:Gets the direction this hopper is facing
- 指定者:
getFacing在接口中Directional- 返回:
- 漏斗面向的方向
- 另请参阅:
-
toString
已过时。- 覆盖:
toString在类中MaterialData
-
clone
已过时。- 覆盖:
clone在类中MaterialData
-
isPowered
public boolean isPowered()已过时。检查漏斗是否被充能。原文:Checks if the hopper is powered.
-
BlockData.