Interface EntityInstancingController<T extends net.minecraft.world.entity.Entity>

Type Parameters:
T - The entity type.
All Known Implementing Classes:
SimpleEntityInstancingController

public interface EntityInstancingController<T extends net.minecraft.world.entity.Entity>
An instancing controller that will be keyed to an entity type.
  • Method Summary

    Modifier and Type
    Method
    Description
    EntityInstance<? super T>
    createInstance(MaterialManager materialManager, T entity)
    Given an entity and a material manager, constructs an instance for the entity.
    boolean
    Checks if the given entity should not render normally.
  • Method Details

    • createInstance

      EntityInstance<? super T> createInstance(MaterialManager materialManager, T entity)
      Given an entity and a material manager, constructs an instance for the entity.
      Parameters:
      materialManager - The material manager to use.
      entity - The entity to construct an instance for.
      Returns:
      The instance.
    • shouldSkipRender

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