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

public class EntityTrackEntryDrone extends Object implements IEntityTrackEntry
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addInfo(net.minecraft.world.entity.Entity entity, List<net.minecraft.network.chat.Component> curInfo, boolean isLookingAtTarget)
    Add info to the tab.
     
    boolean
    isApplicable(net.minecraft.world.entity.Entity entity)
    Return true if you want to add a tooltip for the given entity.
    void
    render(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.world.entity.Entity entity, float partialTicks)
    Called every render tick, this method can be used to render additional info.
    void
    tick(net.minecraft.world.entity.Entity entity)
    Called every client tick; can be used to update something like a timer (e.g.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EntityTrackEntryDrone

      public EntityTrackEntryDrone()
  • 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
    • getDroneAIRenderer

      public RenderDroneAI getDroneAIRenderer(AbstractDroneEntity drone)
    • tick

      public void tick(net.minecraft.world.entity.Entity entity)
      Description copied from interface: IEntityTrackEntry
      Called every client tick; can be used to update something like a timer (e.g. used for the Creeper explosion countdown).
      Specified by:
      tick in interface IEntityTrackEntry
      Parameters:
      entity - the tracked entity
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.world.entity.Entity entity, float partialTicks)
      Description copied from interface: IEntityTrackEntry
      Called every render tick, this method can be used to render additional info. Used for Drone AI visualisation, for example.
      Specified by:
      render in interface IEntityTrackEntry
      entity - the tracked entity
      partialTicks - partial ticks since last full ticks
    • 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