public class HackableBlaze extends java.lang.Object implements IHackableEntity
| Constructor and Description |
|---|
HackableBlaze() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHackInfo(net.minecraft.entity.Entity entity,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.entity.player.PlayerEntity player)
Add info that is displayed on the tracker tooltip here.
|
void |
addPostHackInfo(net.minecraft.entity.Entity entity,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.entity.player.PlayerEntity player)
Add info that is being displayed after hacking, as long as 'afterHackTick' is returning true.
|
boolean |
afterHackTick(net.minecraft.entity.Entity entity)
Called every tick after the hacking finished.
|
boolean |
canHack(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
Returning true will allow the player to hack this entity.
|
net.minecraft.util.ResourceLocation |
getHackableId()
Should return a unique id to represent this hackable.
|
int |
getHackTime(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
Return the time it takes to hack this entity in ticks.
|
void |
onHackFinished(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
Called when a player successfully hacks an entity; basically
getHackTime(Entity) ticks after the
hack was initiated. |
public net.minecraft.util.ResourceLocation getHackableId()
IHackableEntitygetHackableId in interface IHackableEntitypublic boolean canHack(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
IHackableEntitycanHack in interface IHackableEntityentity - the potential hacking targetplayer - the player who is looking at the entitypublic void addHackInfo(net.minecraft.entity.Entity entity,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.entity.player.PlayerEntity player)
IHackableEntityaddHackInfo in interface IHackableEntityentity - the potential hack targetcurInfo - a text component list to append info toplayer - the player who is looking at the entitypublic void addPostHackInfo(net.minecraft.entity.Entity entity,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.entity.player.PlayerEntity player)
IHackableEntityaddPostHackInfo in interface IHackableEntityentity - the hacked entitycurInfo - a text component list to append info toplayer - the player who has hacked the entitypublic int getHackTime(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
IHackableEntitygetHackTime in interface IHackableEntityentity - the potential hack targetplayer - the player who is looking at the entitypublic void onHackFinished(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
IHackableEntitygetHackTime(Entity) ticks after the
hack was initiated.onHackFinished in interface IHackableEntityentity - the hacked entityplayer - the player who has hacked the entitypublic boolean afterHackTick(net.minecraft.entity.Entity entity)
IHackableEntityafterHackTick in interface IHackableEntityentity - the hacked entity