Interface BlockEntityVisual<T extends net.minecraft.world.level.block.entity.BlockEntity>
- Type Parameters:
T- The block entity type.
- All Superinterfaces:
Visual
- All Known Implementing Classes:
AbstractBlockEntityVisual
public interface BlockEntityVisual<T extends net.minecraft.world.level.block.entity.BlockEntity>
extends Visual
A visual associated with a specific block entity.
BlockEntityVisuals exist for at most the lifetime of the block entity they are associated with.
If the block state at your BlockEntityVisual's position changes without removing the block entity, the visual will be deleted and recreated. Therefore, it is also safe to assume than the block state is constant for the lifetime of the visual.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcollectCrumblingInstances(Consumer<@Nullable Instance> consumer) Collect all instances that should render with a crumbling overlay when the block corresponding to this visual is being broken.
-
Method Details
-
collectCrumblingInstances
Collect all instances that should render with a crumbling overlay when the block corresponding to this visual is being broken.
Passingnullto the consumer has no effect.- Parameters:
consumer- A consumer to provide instances to.
-