Package org.bukkit.material
Class Hopper
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Hopper
- All Implemented Interfaces:
Cloneable
,Directional
,Redstone
@Deprecated(forRemoval=true,
since="1.13")
public class Hopper
extends MaterialData
implements Directional, Redstone
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a hopper in an active or deactivated state and facing in a
specific direction.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final boolean
Deprecated, for removal: This API element is subject to removal in a future version.protected static final BlockFace
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorDescriptionHopper()
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a hopper facing the default direction (down) and initially active.Deprecated, for removal: This API element is subject to removal in a future version.Constructs a hopper facing the specified direction and initially active.Deprecated, for removal: This API element is subject to removal in a future version.Constructs a hopper facing the specified direction and either active or not.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic value -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets the direction this hopper is facingboolean
isActive()
Deprecated, for removal: This API element is subject to removal in a future version.Checks whether the hopper is active or not.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Checks if the hopper is powered.void
setActive
(boolean isActive) Deprecated, for removal: This API element is subject to removal in a future version.Sets whether the hopper is active or not.void
setFacingDirection
(BlockFace face) Deprecated, for removal: This API element is subject to removal in a future version.Sets the direction this hopper is facingtoString()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Field Details
-
DEFAULT_DIRECTION
Deprecated, for removal: This API element is subject to removal in a future version. -
DEFAULT_ACTIVE
protected static final boolean DEFAULT_ACTIVEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
Hopper
public Hopper()Deprecated, for removal: This API element is subject to removal in a future version.Constructs a hopper facing the default direction (down) and initially active. -
Hopper
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a hopper facing the specified direction and initially active.- Parameters:
facingDirection
- the direction the hopper is facing- See Also:
-
Hopper
Deprecated, for removal: This API element is subject to removal in a future version.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:
-
Hopper
Deprecated, for removal: This API element is subject to removal in a future version. -
Hopper
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
setActive
public void setActive(boolean isActive) Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Checks whether the hopper is active or not.- Returns:
- True if the hopper is active, false if deactivated
-
setFacingDirection
Deprecated, for removal: This API element is subject to removal in a future version.Sets the direction this hopper is facing- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The direction to set this hopper to- See Also:
-
getFacing
Deprecated, for removal: This API element is subject to removal in a future version.Gets the direction this hopper is facing- Specified by:
getFacing
in interfaceDirectional
- Returns:
- The direction this hopper is facing
- See Also:
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classMaterialData
-
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clone
in classMaterialData
-
isPowered
public boolean isPowered()Deprecated, for removal: This API element is subject to removal in a future version.Checks if the hopper is powered.
-
BlockData
.