Interface Pickup

All Superinterfaces:
ActiveSkill, Scheduler, Skill

public interface Pickup extends Skill, Scheduler, ActiveSkill
Skill that allows the pet to automatically pick up nearby dropped items and experience orbs on behalf of its owner. The pickup radius scales with the pet's skilltree level. The owner can toggle automatic pickup on or off via ActiveSkill.activate().

The skill ticks via Scheduler to scan for nearby collectibles and persists its active/inactive toggle via a registered SkillStateCodec.

See Also:
  • Method Details

    • getRange

      UpgradeComputer<Number> getRange()
      Returns the upgrade computer controlling the pickup radius in blocks.
      Returns:
      the upgrade computer for the pickup radius in blocks
    • getExpPickup

      UpgradeComputer<Boolean> getExpPickup()
      Returns the upgrade computer controlling whether experience orb pickup is enabled.
      Returns:
      the upgrade computer for whether experience orb pickup is enabled
    • isPickupEnabled

      boolean isPickupEnabled()
      True if the pickup auto-toggle is currently on.
      Returns:
      true if the owner has switched pickup on
    • setPickupEnabled

      void setPickupEnabled(boolean enabled)
      Sets the pickup auto-toggle directly (skips the ActiveSkill.activate() owner messaging).
      Parameters:
      enabled - true to switch pickup on