Class Diode

    • Field Detail

      • DEFAULT_DIRECTION

        protected static final BlockFace DEFAULT_DIRECTION
        Deprecated.
      • DEFAULT_STATE

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

      • Diode

        public Diode()
        Deprecated.
        Constructs a diode switched on, with a delay of 1 and facing the default direction (north). By default this constructor creates a diode that is switched on for backwards compatibility with past implementations.
      • Diode

        public Diode​(BlockFace facingDirection)
        Deprecated.
        Constructs a diode switched off, with a delay of 1 and facing the specified direction.
        Parameters:
        facingDirection - the direction the diode is facing
        See Also:
        BlockFace
      • Diode

        public Diode​(BlockFace facingDirection,
                     int delay)
        Deprecated.
        Constructs a diode switched off, with the specified delay and facing the specified direction.
        Parameters:
        facingDirection - the direction the diode is facing
        delay - The number of ticks (1-4) before the diode turns on after being powered
        See Also:
        BlockFace
      • Diode

        public Diode​(BlockFace facingDirection,
                     int delay,
                     boolean state)
        Deprecated.
        Constructs a diode switched on or off, with the specified delay and facing the specified direction.
        Parameters:
        facingDirection - the direction the diode is facing
        delay - The number of ticks (1-4) before the diode turns on after being powered
        state - True if the diode is in the on state
        See Also:
        BlockFace
      • Diode

        public Diode​(Material type)
        Deprecated.
      • Diode

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

      • setDelay

        public void setDelay​(int delay)
        Deprecated.
        Sets the delay of the repeater.
        Parameters:
        delay - The new delay (1-4)
      • getDelay

        public int getDelay()
        Deprecated.
        Gets the delay of the repeater in ticks.
        Returns:
        The delay (1-4)
      • setFacingDirection

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

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

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