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 Type
    Method
    Description
    void
    Collect all instances that should render with a crumbling overlay when the block corresponding to this visual is being broken.

    Methods inherited from interface dev.engine_room.flywheel.api.visual.Visual

    delete, update
  • Method Details

    • collectCrumblingInstances

      void collectCrumblingInstances(Consumer<@Nullable Instance> consumer)
      Collect all instances that should render with a crumbling overlay when the block corresponding to this visual is being broken.
      Passing null to the consumer has no effect.
      Parameters:
      consumer - A consumer to provide instances to.