Interface BlockEntityVisualizer<T extends net.minecraft.world.level.block.entity.BlockEntity>
- Type Parameters:
T- The block entity type.
- All Known Implementing Classes:
SimpleBlockEntityVisualizer
public interface BlockEntityVisualizer<T extends net.minecraft.world.level.block.entity.BlockEntity>
A visualizer that will be keyed to a block entity type.
-
Method Summary
Modifier and TypeMethodDescriptionBlockEntityVisual<? super T> createVisual(VisualizationContext ctx, T blockEntity, float partialTick) Given a block entity and context, constructs a visual for the block entity.booleanskipVanillaRender(T blockEntity) Checks if the given block entity should not be rendered with the vanillaBlockEntityRenderer.
-
Method Details
-
createVisual
BlockEntityVisual<? super T> createVisual(VisualizationContext ctx, T blockEntity, float partialTick) Given a block entity and context, constructs a visual for the block entity.- Parameters:
ctx- Context for creating a visual.blockEntity- The block entity to construct a visual for.- Returns:
- The visual.
-
skipVanillaRender
Checks if the given block entity should not be rendered with the vanillaBlockEntityRenderer.- Parameters:
blockEntity- The block entity to check.- Returns:
trueif the block entity should not be rendered with the vanillaBlockEntityRenderer,falseif it should.
-