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 TypeMethodDescriptionEntityInstance<? super T>createInstance(MaterialManager materialManager, T entity) Given an entity and a material manager, constructs an instance for the entity.booleanshouldSkipRender(T entity) Checks if the given entity should not render normally.
-
Method Details
-
createInstance
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
Checks if the given entity should not render normally.- Parameters:
entity- The entity to check.- Returns:
trueif the entity should not render normally,falseif it should.
-