Class HackableHorse

java.lang.Object
me.desht.pneumaticcraft.common.hacking.entity.AbstractTameableHack<net.minecraft.world.entity.animal.horse.Horse>
me.desht.pneumaticcraft.common.hacking.entity.HackableHorse
All Implemented Interfaces:
IHackableEntity<net.minecraft.world.entity.animal.horse.Horse>

public class HackableHorse extends AbstractTameableHack<net.minecraft.world.entity.animal.horse.Horse>
Horses, although tameable animals, don't extend TamableAnimal, or even OwnableEntity. Yay.
  • Constructor Details

    • HackableHorse

      public HackableHorse()
  • Method Details

    • getHackableId

      public net.minecraft.resources.ResourceLocation getHackableId()
      Description copied from interface: IHackableEntity
      Should return a unique id to represent this hackable.
      Returns:
      a unique String id
    • getHackableClass

      @NotNull public @NotNull Class<net.minecraft.world.entity.animal.horse.Horse> getHackableClass()
      Description copied from interface: IHackableEntity
      Get 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.animal.horse.Horse entity, net.minecraft.world.entity.player.Player player)
      Description copied from interface: IHackableEntity
      Called when a player successfully hacks an entity; basically getHackTime(Entity) ticks after the hack was initiated.
      Parameters:
      entity - the hacked entity
      player - the player who has hacked the entity