Interface EntityVisualizer<T extends net.minecraft.world.entity.Entity>
- Type Parameters:
T- The entity type.
- All Known Implementing Classes:
SimpleEntityVisualizer
public interface EntityVisualizer<T extends net.minecraft.world.entity.Entity>
A visualizer that will be keyed to an entity type.
-
Method Summary
Modifier and TypeMethodDescriptionEntityVisual<? super T> createVisual(VisualizationContext ctx, T entity, float partialTick) Given an entity and context, constructs a visual for the entity.booleanskipVanillaRender(T entity) Checks if the given entity should not render with the vanillaEntityRenderer.
-
Method Details
-
createVisual
Given an entity and context, constructs a visual for the entity.- Parameters:
ctx- Context for creating a visual.entity- The entity to construct a visual for.- Returns:
- The visual.
-
skipVanillaRender
Checks if the given entity should not render with the vanillaEntityRenderer.- Parameters:
entity- The entity to check.- Returns:
trueif the entity should not render with the vanillaEntityRenderer,falseif it should.
-