public class Hopper extends MaterialData implements Directional, Redstone
Material.HOPPER
修飾子とタイプ | フィールドと説明 |
---|---|
protected static boolean |
DEFAULT_ACTIVE |
protected static BlockFace |
DEFAULT_DIRECTION |
コンストラクタと説明 |
---|
Hopper()
Constructs a hopper facing the default direction (down) and initially
active.
|
Hopper(BlockFace facingDirection)
Constructs a hopper facing the specified direction and initially active.
|
Hopper(BlockFace facingDirection,
boolean isActive)
Constructs a hopper facing the specified direction and either active or
not.
|
Hopper(int type)
非推奨です。
Magic value
|
Hopper(int type,
byte data)
非推奨です。
Magic value
|
Hopper(Material type) |
Hopper(Material type,
byte data)
非推奨です。
Magic value
|
修飾子とタイプ | メソッドと説明 |
---|---|
Hopper |
clone() |
BlockFace |
getFacing()
Gets the direction this hopper is facing
|
boolean |
isActive()
Checks whether the hopper is active or not.
|
boolean |
isPowered()
Checks if the hopper is powered.
|
void |
setActive(boolean isActive)
Sets whether the hopper is active or not.
|
void |
setFacingDirection(BlockFace face)
Sets the direction this hopper is facing
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, 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
@Deprecated public Hopper(int type)
type
- the raw type idpublic Hopper(Material type)
@Deprecated public Hopper(int type, byte data)
type
- the raw type iddata
- the raw data value@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
インタフェース内 Directional
face
- The direction to set this hopper toBlockFace
public BlockFace getFacing()
getFacing
インタフェース内 Directional
BlockFace
public String toString()
toString
クラス内 MaterialData
public Hopper clone()
clone
クラス内 MaterialData
Copyright © 2016. All rights reserved.