Interface IHacking


public interface IHacking
Manages the list of "hacks" on an entity. Hacks are added via the Pneumatic Helmet hacking feature. This interface is exposed via an entity capability; you can retrieve this via CapabilityManager.get(CapabilityToken)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add a new hack to the entity's list of hacks.
    Get a list of the hacks currently on the entity.
    void
    tick(net.minecraft.world.entity.Entity entity)
    Called every tick on every entity which has been hacked (i.e.
  • Method Details

    • tick

      void tick(net.minecraft.world.entity.Entity entity)
      Called every tick on every entity which has been hacked (i.e. which has a non-empty list of hacks)
      Parameters:
      entity - the hacked entity
    • addHackable

      void addHackable(IHackableEntity hackable)
      Add a new hack to the entity's list of hacks.
      Parameters:
      hackable - a hack
    • getCurrentHacks

      List<IHackableEntity> getCurrentHacks()
      Get a list of the hacks currently on the entity.
      Returns:
      a list of hacks