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.13",
            forRemoval=true)
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 SummaryFieldsModifier and TypeFieldDescriptionprotected static final booleanDeprecated, for removal: This API element is subject to removal in a future version.protected static final BlockFaceDeprecated, for removal: This API element is subject to removal in a future version.
- 
Constructor SummaryConstructorsConstructorDescriptionHopper()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 SummaryModifier 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 facingbooleanisActive()Deprecated, for removal: This API element is subject to removal in a future version.Checks whether the hopper is active or not.booleanDeprecated, for removal: This API element is subject to removal in a future version.Checks if the hopper is powered.voidsetActive(boolean isActive) Deprecated, for removal: This API element is subject to removal in a future version.Sets whether the hopper is active or not.voidsetFacingDirection(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.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Field Details- 
DEFAULT_DIRECTIONDeprecated, for removal: This API element is subject to removal in a future version.
- 
DEFAULT_ACTIVEprotected static final boolean DEFAULT_ACTIVEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
 
 
- 
- 
Constructor Details- 
Hopperpublic 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.
- 
HopperDeprecated, 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:
 
- 
HopperDeprecated, 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 facing
- isActive- True if the hopper is initially active, false if deactivated
- See Also:
 
- 
HopperDeprecated, for removal: This API element is subject to removal in a future version.
- 
HopperDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
setActivepublic 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
 
- 
isActivepublic 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
 
- 
setFacingDirectionDeprecated, for removal: This API element is subject to removal in a future version.Sets the direction this hopper is facing- Specified by:
- setFacingDirectionin interface- Directional
- Parameters:
- face- The direction to set this hopper to
- See Also:
 
- 
getFacingDeprecated, for removal: This API element is subject to removal in a future version.Gets the direction this hopper is facing- Specified by:
- getFacingin interface- Directional
- Returns:
- The direction this hopper is facing
- See Also:
 
- 
toStringDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- toStringin class- MaterialData
 
- 
cloneDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- clonein class- MaterialData
 
- 
isPoweredpublic boolean isPowered()Deprecated, for removal: This API element is subject to removal in a future version.Checks if the hopper is powered.
 
- 
BlockData.