类 Hopper
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Hopper
- 所有已实现的接口:
Cloneable
,Directional
,Redstone
已过时。
Represents a hopper in an active or deactivated state and facing in a
specific direction.
- 另请参阅:
-
字段概要
-
构造器概要
构造器说明Hopper()
已过时。Constructs a hopper facing the default direction (down) and initially active.已过时。Constructs a hopper facing the specified direction and initially active.已过时。Constructs a hopper facing the specified direction and either active or not.已过时。已过时。Magic value -
方法概要
修饰符和类型方法说明clone()
已过时。已过时。Gets the direction this hopper is facingboolean
isActive()
已过时。Checks whether the hopper is active or not.boolean
已过时。Checks if the hopper is powered.void
setActive
(boolean isActive) 已过时。Sets whether the hopper is active or not.void
setFacingDirection
(BlockFace face) 已过时。Sets the direction this hopper is facingtoString()
已过时。从类继承的方法 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
- the direction the hopper is facing- 另请参阅:
-
Hopper
已过时。Constructs a hopper facing the specified direction and either active or not.- 参数:
facingDirection
- the direction the hopper is facingisActive
- True if the hopper is initially active, false if deactivated- 另请参阅:
-
Hopper
已过时。 -
Hopper
已过时。Magic value- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
setActive
public void setActive(boolean isActive) 已过时。Sets whether the hopper is active or not.- 参数:
isActive
- True if the hopper is active, false if deactivated as if powered by redstone
-
isActive
public boolean isActive()已过时。Checks whether the hopper is active or not.- 返回:
- True if the hopper is active, false if deactivated
-
setFacingDirection
已过时。Sets the direction this hopper is facing- 指定者:
setFacingDirection
在接口中Directional
- 参数:
face
- The direction to set this hopper to- 另请参阅:
-
getFacing
已过时。Gets the direction this hopper is facing- 指定者:
getFacing
在接口中Directional
- 返回:
- The direction this hopper is facing
- 另请参阅:
-
toString
已过时。- 覆盖:
toString
在类中MaterialData
-
clone
已过时。- 覆盖:
clone
在类中MaterialData
-
isPowered
public boolean isPowered()已过时。Checks if the hopper is powered.
-
BlockData
.