public class HackableHorse extends HackableTameable
| Constructor and Description |
|---|
HackableHorse() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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. |
addHackInfo, addPostHackInfo, afterHackTick, getHackTimepublic net.minecraft.util.ResourceLocation getHackableId()
IHackableEntitygetHackableId in interface IHackableEntitygetHackableId in class HackableTameablepublic boolean canHack(net.minecraft.entity.Entity entity,
net.minecraft.entity.player.PlayerEntity player)
IHackableEntitycanHack in interface IHackableEntitycanHack in class HackableTameableentity - the potential hacking 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 IHackableEntityonHackFinished in class HackableTameableentity - the hacked entityplayer - the player who has hacked the entity