Package org.bukkit.material
Class Hopper
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Hopper
- All Implemented Interfaces:
- Cloneable,- Directional,- Redstone
@Deprecated(since="1.14.1")
public class Hopper
extends MaterialData
implements Directional, Redstone
Deprecated.
Represents a hopper in an active or deactivated state and facing in a
 specific direction.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final booleanDeprecated.protected static final BlockFaceDeprecated.
- 
Constructor SummaryConstructorsConstructorDescriptionHopper()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 SummaryModifier and TypeMethodDescriptionclone()Deprecated.Deprecated.Gets the direction this hopper is facingbooleanisActive()Deprecated.Checks whether the hopper is active or not.booleanDeprecated.Checks if the hopper is powered.voidsetActive(boolean isActive) Deprecated.Sets whether the hopper is active or not.voidsetFacingDirection(BlockFace face) Deprecated.Sets the direction this hopper is facingtoString()Deprecated.Methods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Field Details- 
DEFAULT_DIRECTIONDeprecated.
- 
DEFAULT_ACTIVEprotected static final boolean DEFAULT_ACTIVEDeprecated.- See Also:
 
 
- 
- 
Constructor Details- 
Hopperpublic Hopper()Deprecated.Constructs a hopper facing the default direction (down) and initially active.
- 
HopperDeprecated.Constructs a hopper facing the specified direction and initially active.- Parameters:
- facingDirection- the direction the hopper is facing
- See Also:
 
- 
HopperDeprecated.Constructs a hopper facing the specified direction and either active or not.- Parameters:
- facingDirection- the direction the hopper is facing
- isActive- True if the hopper is initially active, false if deactivated
- See Also:
 
- 
HopperDeprecated.
- 
HopperDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
setActivepublic 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
 
- 
isActivepublic boolean isActive()Deprecated.Checks whether the hopper is active or not.- Returns:
- True if the hopper is active, false if deactivated
 
- 
setFacingDirectionDeprecated.Sets the direction this hopper is facing- Specified by:
- setFacingDirectionin interface- Directional
- Parameters:
- face- The direction to set this hopper to
- See Also:
 
- 
getFacingDeprecated.Gets the direction this hopper is facing- Specified by:
- getFacingin interface- Directional
- Returns:
- The direction this hopper is facing
- See Also:
 
- 
toStringDeprecated.- Overrides:
- toStringin class- MaterialData
 
- 
cloneDeprecated.- Overrides:
- clonein class- MaterialData
 
- 
isPoweredpublic boolean isPowered()Deprecated.Checks if the hopper is powered.
 
- 
BlockData.