Cloneable
, Directional
, Redstone
BlockData
.@Deprecated public class Hopper extends MaterialData implements Directional, Redstone
Material.HOPPER
Modifier and Type | Field | Description |
---|---|---|
protected static boolean |
DEFAULT_ACTIVE |
Deprecated.
|
protected static BlockFace |
DEFAULT_DIRECTION |
Deprecated.
|
Constructor | Description |
---|---|
Hopper() |
Deprecated.
Constructs a hopper facing the default direction (down) and initially
active.
|
Hopper(BlockFace facingDirection) |
Deprecated.
Constructs a hopper facing the specified direction and initially active.
|
Hopper(BlockFace facingDirection,
boolean isActive) |
Deprecated.
Constructs a hopper facing the specified direction and either active or
not.
|
Hopper(Material type) |
Deprecated.
|
Hopper(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | Description |
---|---|---|
Hopper |
clone() |
Deprecated.
|
BlockFace |
getFacing() |
Deprecated.
Gets the direction this hopper is facing
|
boolean |
isActive() |
Deprecated.
Checks whether the hopper is active or not.
|
boolean |
isPowered() |
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 facing
|
String |
toString() |
Deprecated.
|
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
protected static final BlockFace DEFAULT_DIRECTION
protected static final boolean DEFAULT_ACTIVE
public Hopper()
public Hopper(BlockFace facingDirection)
facingDirection
- the direction the hopper is facingBlockFace
public Hopper(BlockFace facingDirection, boolean isActive)
facingDirection
- the direction the hopper is facingisActive
- True if the hopper is initially active, false if
deactivatedBlockFace
public Hopper(Material type)
@Deprecated public Hopper(Material type, byte data)
type
- the typedata
- the raw data valuepublic void setActive(boolean isActive)
isActive
- True if the hopper is active, false if deactivated as if
powered by redstonepublic boolean isActive()
public void setFacingDirection(BlockFace face)
setFacingDirection
in interface Directional
face
- The direction to set this hopper toBlockFace
public BlockFace getFacing()
getFacing
in interface Directional
BlockFace
public String toString()
toString
in class MaterialData
public Hopper clone()
clone
in class MaterialData
Copyright © 2020. All rights reserved.