Interface Conduit

All Superinterfaces:
BlockState, Metadatable, PersistentDataHolder, TileState

public interface Conduit extends TileState
Represents a captured state of a conduit.
  • Method Details

    • isActive

      boolean isActive()
      Gets if the conduit is currently active.

      Requires the conduit to be placed in the world.

      Returns:
      if the conduit is active
    • getRange

      int getRange()
      Gets the range in which the Conduit Power effect gets added to players.

      Requires the conduit to be placed in the world.

      Returns:
      the range
    • getTarget

      @Nullable LivingEntity getTarget()
      Gets the current target of the conduit.
      Returns:
      the current target