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 Type
    Method
    Description
    createInstance(MaterialManager materialManager, T blockEntity)
    Given a block entity and a material manager, constructs an instance for the block entity.
    boolean
    shouldSkipRender(T blockEntity)
    Checks if the given block entity should not be rendered normally.
  • Method Details

    • createInstance

      BlockEntityInstance<? super T> createInstance(MaterialManager materialManager, T blockEntity)
      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

      boolean shouldSkipRender(T blockEntity)
      Checks if the given block entity should not be rendered normally.
      Parameters:
      blockEntity - The block entity to check.
      Returns:
      true if the block entity should not be rendered normally, false if it should.