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 TypeMethodDescriptionvoidaddHackable(IHackableEntity hackable) Add a new hack to the entity's list of hacks.Get a list of the hacks currently on the entity.voidtick(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
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
-