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(int type)
非推奨です。
Magic value
|
Comparator(int type,
byte data)
非推奨です。
Magic value
|
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.
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackprotected 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 facingBlockFacepublic Comparator(BlockFace facingDirection, boolean isSubtraction)
facingDirection - the direction the comparator is facingisSubtraction - True if the comparator is in subtraction mode, false for normal comparator operationBlockFacepublic 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@Deprecated public Comparator(int type)
type - the raw type idpublic Comparator(Material type)
@Deprecated public Comparator(int type, byte data)
type - the raw type iddata - the raw data value@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 インタフェース内 Directionalface - The direction to set this comparator toBlockFacepublic BlockFace getFacing()
getFacing インタフェース内 DirectionalBlockFacepublic String toString()
toString クラス内 MaterialDatapublic Comparator clone()
clone クラス内 MaterialDatapublic boolean isPowered()
public boolean isBeingPowered()
Copyright © 2016. All rights reserved.