Package org.bukkit.material
Class Comparator
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Comparator
- All Implemented Interfaces:
- Cloneable,- Directional,- Redstone
Deprecated.
Represents a comparator in the on or off state, in normal or subtraction mode and facing in a specific direction.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final BlockFaceDeprecated.protected static final booleanDeprecated.protected static final booleanDeprecated.
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.Constructs a comparator switched off, with the default mode (normal) and facing the default direction (north).Comparator(BlockFace facingDirection) Deprecated.Constructs a comparator switched off, with the default mode (normal) and facing the specified direction.Comparator(BlockFace facingDirection, boolean isSubtraction) Deprecated.Constructs a comparator switched off, with the specified mode and facing the specified direction.Comparator(BlockFace facingDirection, boolean isSubtraction, boolean state) Deprecated.Constructs a comparator switched on or off, with the specified mode and facing the specified direction.Comparator(Material type) Deprecated.Comparator(Material type, byte data) Deprecated.Magic value
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated.Deprecated.Gets the direction this comparator is facingbooleanDeprecated.Checks if the comparator is being poweredbooleanDeprecated.Checks if the comparator is poweredbooleanDeprecated.Checks whether the comparator is in subtraction modevoidsetFacingDirection(BlockFace face) Deprecated.Sets the direction this comparator is facingvoidsetSubtractionMode(boolean isSubtraction) Deprecated.Sets whether the comparator is in subtraction mode.toString()Deprecated.Methods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Field Details- 
DEFAULT_DIRECTIONDeprecated.
- 
DEFAULT_SUBTRACTION_MODEprotected static final boolean DEFAULT_SUBTRACTION_MODEDeprecated.- See Also:
 
- 
DEFAULT_STATEprotected static final boolean DEFAULT_STATEDeprecated.- See Also:
 
 
- 
- 
Constructor Details- 
Comparatorpublic Comparator()Deprecated.Constructs a comparator switched off, with the default mode (normal) and facing the default direction (north).
- 
ComparatorDeprecated.Constructs a comparator switched off, with the default mode (normal) and facing the specified direction.- Parameters:
- facingDirection- the direction the comparator is facing
- See Also:
 
- 
ComparatorDeprecated.Constructs a comparator switched off, with the specified mode and facing the specified direction.- Parameters:
- facingDirection- the direction the comparator is facing
- isSubtraction- True if the comparator is in subtraction mode, false for normal comparator operation
- See Also:
 
- 
ComparatorDeprecated.Constructs a comparator switched on or off, with the specified mode and facing the specified direction.- Parameters:
- facingDirection- the direction the comparator is facing
- isSubtraction- True if the comparator is in subtraction mode, false for normal comparator operation
- state- True if the comparator is in the on state
- See Also:
 
- 
ComparatorDeprecated.
- 
ComparatorDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
setSubtractionModepublic void setSubtractionMode(boolean isSubtraction) Deprecated.Sets whether the comparator is in subtraction mode.- Parameters:
- isSubtraction- True if the comparator is in subtraction mode, false for normal comparator operation
 
- 
isSubtractionModepublic boolean isSubtractionMode()Deprecated.Checks whether the comparator is in subtraction mode- Returns:
- True if the comparator is in subtraction mode, false if normal comparator operation
 
- 
setFacingDirectionDeprecated.Sets the direction this comparator is facing- Specified by:
- setFacingDirectionin interface- Directional
- Parameters:
- face- The direction to set this comparator to
- See Also:
 
- 
getFacingDeprecated.Gets the direction this comparator is facing- Specified by:
- getFacingin interface- Directional
- Returns:
- The direction this comparator is facing
- See Also:
 
- 
toStringDeprecated.- Overrides:
- toStringin class- MaterialData
 
- 
cloneDeprecated.- Overrides:
- clonein class- MaterialData
 
- 
isPoweredpublic boolean isPowered()Deprecated.Checks if the comparator is powered
- 
isBeingPoweredpublic boolean isBeingPowered()Deprecated.Checks if the comparator is being powered- Returns:
- true if the comparator is being powered
 
 
- 
BlockData.