public interface IEntityTrackEntry
IPneumaticHelmetRegistry.registerEntityTrackEntry(java.util.function.Supplier).
Your implementation must provide a no-parameter constructor. For every entity that's applicable for this definition,
an instance is created.| Modifier and Type | Method and Description |
|---|---|
void |
addInfo(net.minecraft.entity.Entity entity,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
boolean isLookingAtTarget)
Add info to the tab.
|
boolean |
isApplicable(net.minecraft.entity.Entity entity)
Return true if you want to add a tooltip for the given entity.
|
default void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
net.minecraft.entity.Entity entity,
float partialTicks)
Called every render tick, this method can be used to render additional info.
|
default void |
update(net.minecraft.entity.Entity entity)
Update is called every (client) tick, and can be used to update something like a timer (e.g.
|
boolean isApplicable(net.minecraft.entity.Entity entity)
entity - the candidate entityvoid addInfo(net.minecraft.entity.Entity entity,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
boolean isLookingAtTarget)
entity - the tracked entitycurInfo - list of text component to append information toisLookingAtTarget - true if the player is focused on the tracked entitydefault void update(net.minecraft.entity.Entity entity)
entity - the tracked entitydefault void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
net.minecraft.entity.Entity entity,
float partialTicks)
entity - the tracked entitypartialTicks - partial ticks since last full ticks