Class EntityTrackEntryAgeable

java.lang.Object
me.desht.pneumaticcraft.client.pneumatic_armor.entity_tracker.EntityTrackEntryAgeable
All Implemented Interfaces:
IEntityTrackEntry

public class EntityTrackEntryAgeable extends Object implements IEntityTrackEntry
  • Constructor Details

    • EntityTrackEntryAgeable

      public EntityTrackEntryAgeable()
  • Method Details

    • isApplicable

      public boolean isApplicable(net.minecraft.world.entity.Entity entity)
      Description copied from interface: IEntityTrackEntry
      Return true if you want to add a tooltip for the given entity.
      Specified by:
      isApplicable in interface IEntityTrackEntry
      Parameters:
      entity - the candidate entity
      Returns:
      true if this tracker is applicable to the given entity
    • addInfo

      public void addInfo(net.minecraft.world.entity.Entity entity, List<net.minecraft.network.chat.Component> curInfo, boolean isLookingAtTarget)
      Description copied from interface: IEntityTrackEntry
      Add info to the tab. This is only called when isApplicable returned true.
      Specified by:
      addInfo in interface IEntityTrackEntry
      Parameters:
      entity - the tracked entity
      curInfo - list of text component to append information to
      isLookingAtTarget - true if the player is focused on the tracked entity