BlockData
.@Deprecated public class Comparator extends MaterialData implements Directional, Redstone
限定符和类型 | 字段和说明 |
---|---|
protected static BlockFace |
DEFAULT_DIRECTION
已过时。
|
protected static boolean |
DEFAULT_STATE
已过时。
|
protected static boolean |
DEFAULT_SUBTRACTION_MODE
已过时。
|
构造器和说明 |
---|
Comparator()
已过时。
Constructs a comparator switched off, with the default mode (normal) and facing the default direction (north).
|
Comparator(BlockFace facingDirection)
已过时。
Constructs a comparator switched off, with the default mode (normal) and facing the specified direction.
|
Comparator(BlockFace facingDirection,
boolean isSubtraction)
已过时。
Constructs a comparator switched off, with the specified mode and facing the specified direction.
|
Comparator(BlockFace facingDirection,
boolean isSubtraction,
boolean state)
已过时。
Constructs a comparator switched on or off, with the specified mode and facing the specified direction.
|
Comparator(Material type)
已过时。
|
Comparator(Material type,
byte data)
已过时。
Magic value
|
限定符和类型 | 方法和说明 |
---|---|
Comparator |
clone()
已过时。
|
BlockFace |
getFacing()
已过时。
Gets the direction this comparator is facing
|
boolean |
isBeingPowered()
已过时。
Checks if the comparator is being powered
|
boolean |
isPowered()
已过时。
Checks if the comparator is powered
|
boolean |
isSubtractionMode()
已过时。
Checks whether the comparator is in subtraction mode
|
void |
setFacingDirection(BlockFace face)
已过时。
Sets the direction this comparator is facing
|
void |
setSubtractionMode(boolean isSubtraction)
已过时。
Sets whether the comparator is in subtraction mode.
|
java.lang.String |
toString()
已过时。
|
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
protected static final BlockFace DEFAULT_DIRECTION
protected static final boolean DEFAULT_SUBTRACTION_MODE
protected static final boolean DEFAULT_STATE
public Comparator()
public Comparator(BlockFace facingDirection)
facingDirection
- the direction the comparator is facingBlockFace
public Comparator(BlockFace facingDirection, boolean isSubtraction)
facingDirection
- the direction the comparator is facingisSubtraction
- True if the comparator is in subtraction mode, false for normal comparator operationBlockFace
public Comparator(BlockFace facingDirection, boolean isSubtraction, boolean state)
facingDirection
- the direction the comparator is facingisSubtraction
- True if the comparator is in subtraction mode, false for normal comparator operationstate
- True if the comparator is in the on stateBlockFace
public Comparator(Material type)
@Deprecated public Comparator(Material type, byte data)
type
- the typedata
- the raw data valuepublic void setSubtractionMode(boolean isSubtraction)
isSubtraction
- True if the comparator is in subtraction mode, false for normal comparator operationpublic boolean isSubtractionMode()
public void setFacingDirection(BlockFace face)
setFacingDirection
在接口中 Directional
face
- The direction to set this comparator toBlockFace
public BlockFace getFacing()
getFacing
在接口中 Directional
BlockFace
public java.lang.String toString()
toString
在类中 MaterialData
public Comparator clone()
clone
在类中 MaterialData
public boolean isPowered()
public boolean isBeingPowered()