Class HackableBlaze
java.lang.Object
me.desht.pneumaticcraft.api.pneumatic_armor.hacking.AbstractPersistentEntityHack<net.minecraft.world.entity.monster.Blaze>
me.desht.pneumaticcraft.common.hacking.entity.HackableBlaze
- All Implemented Interfaces:
IHackableEntity<net.minecraft.world.entity.monster.Blaze>
public class HackableBlaze
extends AbstractPersistentEntityHack<net.minecraft.world.entity.monster.Blaze>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class me.desht.pneumaticcraft.api.pneumatic_armor.hacking.AbstractPersistentEntityHack
AbstractPersistentEntityHack.StockHackTypes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<net.minecraft.world.entity.monster.Blaze>Get the class of the entity this hack should apply to.net.minecraft.resources.ResourceLocationShould return a unique id to represent this hackable.voidonHackFinished(net.minecraft.world.entity.monster.Blaze entity, net.minecraft.world.entity.player.Player player) Called when a player successfully hacks an entity; basicallygetHackTime(Entity)ticks after the hack was initiated.Methods inherited from class me.desht.pneumaticcraft.api.pneumatic_armor.hacking.AbstractPersistentEntityHack
addHackInfo, addPostHackInfo, afterHackTick, canHack, getHackTime, hasPersistentHackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.desht.pneumaticcraft.api.pneumatic_armor.hacking.IHackableEntity
_addHackInfo, _addPostHackInfo, _afterHackTick, _getHackTime, _onHackFinished
-
Constructor Details
-
HackableBlaze
public HackableBlaze()
-
-
Method Details
-
getHackableId
public net.minecraft.resources.ResourceLocation getHackableId()Description copied from interface:IHackableEntityShould return a unique id to represent this hackable.- Returns:
- a unique String id
-
getHackableClass
Description copied from interface:IHackableEntityGet the class of the entity this hack should apply to. All subclasses of this class will also be applicable.- Returns:
- the target entity class
-
onHackFinished
public void onHackFinished(net.minecraft.world.entity.monster.Blaze entity, net.minecraft.world.entity.player.Player player) Description copied from interface:IHackableEntityCalled when a player successfully hacks an entity; basicallygetHackTime(Entity)ticks after the hack was initiated.- Specified by:
onHackFinishedin interfaceIHackableEntity<net.minecraft.world.entity.monster.Blaze>- Overrides:
onHackFinishedin classAbstractPersistentEntityHack<net.minecraft.world.entity.monster.Blaze>- Parameters:
entity- the hacked entityplayer- the player who has hacked the entity
-