Package org.bukkit.material
Class Hopper
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Hopper
- All Implemented Interfaces:
Cloneable
,Directional
,Redstone
Deprecated.
Represents a hopper in an active or deactivated state and facing in a
specific direction.
- See Also:
Material.HOPPER
-
Field Summary
Modifier and TypeFieldDescriptionprotected static boolean
Deprecated.protected static BlockFace
Deprecated. -
Constructor Summary
ConstructorDescriptionHopper()
Deprecated.Constructs a hopper facing the default direction (down) and initially active.Deprecated.Constructs a hopper facing the specified direction and initially active.Deprecated.Constructs a hopper facing the specified direction and either active or not.Deprecated.Deprecated.Magic value -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.Deprecated.Gets the direction this hopper is facingboolean
isActive()
Deprecated.Checks whether the hopper is active or not.boolean
Deprecated.Checks if the hopper is powered.void
setActive(boolean isActive)
Deprecated.Sets whether the hopper is active or not.void
setFacingDirection(BlockFace face)
Deprecated.Sets the direction this hopper is facingtoString()
Deprecated.Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Field Details
-
DEFAULT_DIRECTION
Deprecated. -
DEFAULT_ACTIVE
protected static final boolean DEFAULT_ACTIVEDeprecated.- See Also:
- Constant Field Values
-
-
Constructor Details
-
Hopper
public Hopper()Deprecated.Constructs a hopper facing the default direction (down) and initially active. -
Hopper
Deprecated.Constructs a hopper facing the specified direction and initially active.- Parameters:
facingDirection
- the direction the hopper is facing- See Also:
BlockFace
-
Hopper
Deprecated.Constructs a hopper facing the specified direction and either active or not.- Parameters:
facingDirection
- the direction the hopper is facingisActive
- True if the hopper is initially active, false if deactivated- See Also:
BlockFace
-
Hopper
Deprecated. -
Hopper
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
setActive
public void setActive(boolean isActive)Deprecated.Sets whether the hopper is active or not.- Parameters:
isActive
- True if the hopper is active, false if deactivated as if powered by redstone
-
isActive
public boolean isActive()Deprecated.Checks whether the hopper is active or not.- Returns:
- True if the hopper is active, false if deactivated
-
setFacingDirection
Deprecated.Sets the direction this hopper is facing- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The direction to set this hopper to- See Also:
BlockFace
-
getFacing
Deprecated.Gets the direction this hopper is facing- Specified by:
getFacing
in interfaceDirectional
- Returns:
- The direction this hopper is facing
- See Also:
BlockFace
-
toString
Deprecated.- Overrides:
toString
in classMaterialData
-
clone
Deprecated.- Overrides:
clone
in classMaterialData
-
isPowered
public boolean isPowered()Deprecated.Checks if the hopper is powered.
-
BlockData
.