Interface BlockEntityInstancingController<T extends net.minecraft.world.level.block.entity.BlockEntity>
- Type Parameters:
T- The type of block entity this controller is for.
- All Known Implementing Classes:
SimpleBlockEntityInstancingController
public interface BlockEntityInstancingController<T extends net.minecraft.world.level.block.entity.BlockEntity>
An instancing controller that will be keyed to a block entity type.
-
Method Summary
Modifier and TypeMethodDescriptionBlockEntityInstance<? super T>createInstance(MaterialManager materialManager, T blockEntity) Given a block entity and a material manager, constructs an instance for the block entity.booleanshouldSkipRender(T blockEntity) Checks if the given block entity should not be rendered normally.
-
Method Details
-
createInstance
Given a block entity and a material manager, constructs an instance for the block entity.- Parameters:
materialManager- The material manager to use.blockEntity- The block entity to construct an instance for.- Returns:
- The instance.
-
shouldSkipRender
Checks if the given block entity should not be rendered normally.- Parameters:
blockEntity- The block entity to check.- Returns:
trueif the block entity should not be rendered normally,falseif it should.
-