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 Type
    Method
    Description
    EntityVisual<? super T>
    createVisual(VisualizationContext ctx, T entity, float partialTick)
    Given an entity and context, constructs a visual for the entity.
    boolean
    Checks if the given entity should not render with the vanilla EntityRenderer.
  • Method Details

    • createVisual

      EntityVisual<? super T> createVisual(VisualizationContext ctx, T entity, float partialTick)
      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

      boolean skipVanillaRender(T entity)
      Checks if the given entity should not render with the vanilla EntityRenderer.
      Parameters:
      entity - The entity to check.
      Returns:
      true if the entity should not render with the vanilla EntityRenderer, false if it should.