Class HackableTameable

java.lang.Object
me.desht.pneumaticcraft.common.hacking.entity.AbstractTameableHack<net.minecraft.world.entity.TamableAnimal>
me.desht.pneumaticcraft.common.hacking.entity.HackableTameable
All Implemented Interfaces:
IHackableEntity<net.minecraft.world.entity.TamableAnimal>

public class HackableTameable extends AbstractTameableHack<net.minecraft.world.entity.TamableAnimal>
  • Constructor Details

    • HackableTameable

      public HackableTameable()
  • 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.TamableAnimal> 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.TamableAnimal 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