Class EntityTrackEntryPressurizable
java.lang.Object
me.desht.pneumaticcraft.client.pneumatic_armor.entity_tracker.EntityTrackEntryPressurizable
- All Implemented Interfaces:
IEntityTrackEntry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInfo(net.minecraft.world.entity.Entity entity, List<net.minecraft.network.chat.Component> curInfo, boolean isLookingAtTarget) Add info to the tab.booleanisApplicable(net.minecraft.world.entity.Entity entity) Return true if you want to add a tooltip for the given entity.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.desht.pneumaticcraft.api.client.pneumatic_helmet.IEntityTrackEntry
render, tick
-
Constructor Details
-
EntityTrackEntryPressurizable
public EntityTrackEntryPressurizable()
-
-
Method Details
-
isApplicable
public boolean isApplicable(net.minecraft.world.entity.Entity entity) Description copied from interface:IEntityTrackEntryReturn true if you want to add a tooltip for the given entity.- Specified by:
isApplicablein interfaceIEntityTrackEntry- 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:IEntityTrackEntryAdd info to the tab. This is only called when isApplicable returned true.- Specified by:
addInfoin interfaceIEntityTrackEntry- Parameters:
entity- the tracked entitycurInfo- list of text component to append information toisLookingAtTarget- true if the player is focused on the tracked entity
-