Class Comparator

    • Field Detail

      • DEFAULT_DIRECTION

        protected static final BlockFace DEFAULT_DIRECTION
        Deprecated.
      • DEFAULT_SUBTRACTION_MODE

        protected static final boolean DEFAULT_SUBTRACTION_MODE
        Deprecated.
        See Also:
        Constant Field Values
      • DEFAULT_STATE

        protected static final boolean DEFAULT_STATE
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Comparator

        public Comparator()
        Deprecated.
        Constructs a comparator switched off, with the default mode (normal) and facing the default direction (north).
      • Comparator

        public Comparator​(BlockFace facingDirection)
        Deprecated.
        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:
        BlockFace
      • Comparator

        public Comparator​(BlockFace facingDirection,
                          boolean isSubtraction)
        Deprecated.
        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:
        BlockFace
      • Comparator

        public Comparator​(BlockFace facingDirection,
                          boolean isSubtraction,
                          boolean state)
        Deprecated.
        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:
        BlockFace
      • Comparator

        public Comparator​(Material type)
        Deprecated.
      • Comparator

        @Deprecated
        public Comparator​(Material type,
                          byte data)
        Deprecated.
        Magic value
        Parameters:
        type - the type
        data - the raw data value
    • Method Detail

      • setSubtractionMode

        public 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
      • isSubtractionMode

        public 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
      • setFacingDirection

        public void setFacingDirection​(BlockFace face)
        Deprecated.
        Sets the direction this comparator is facing
        Specified by:
        setFacingDirection in interface Directional
        Parameters:
        face - The direction to set this comparator to
        See Also:
        BlockFace
      • getFacing

        public BlockFace getFacing()
        Deprecated.
        Gets the direction this comparator is facing
        Specified by:
        getFacing in interface Directional
        Returns:
        The direction this comparator is facing
        See Also:
        BlockFace
      • isPowered

        public boolean isPowered()
        Deprecated.
        Checks if the comparator is powered
        Specified by:
        isPowered in interface Redstone
        Returns:
        true if the comparator is powered
      • isBeingPowered

        public boolean isBeingPowered()
        Deprecated.
        Checks if the comparator is being powered
        Returns:
        true if the comparator is being powered