Class BlockEntityVisualizerBuilder<T extends net.minecraft.world.level.block.entity.BlockEntity>

java.lang.Object
dev.engine_room.vanillin.config.BlockEntityVisualizerBuilder<T>

public class BlockEntityVisualizerBuilder<T extends net.minecraft.world.level.block.entity.BlockEntity> extends Object
  • Constructor Details

    • BlockEntityVisualizerBuilder

      public BlockEntityVisualizerBuilder(Configurator configurator, net.minecraft.world.level.block.entity.BlockEntityType<T> type)
  • Method Details

    • factory

      public BlockEntityVisualizerBuilder<T> factory(dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T> visualFactory)
      Sets the visual factory for the block entity.
      Parameters:
      visualFactory - The visual factory.
      Returns:
      this
    • skipVanillaRender

      public BlockEntityVisualizerBuilder<T> skipVanillaRender(Predicate<T> skipVanillaRender)
      Sets a predicate to determine whether to skip rendering with the vanilla BlockEntityRenderer.
      Parameters:
      skipVanillaRender - The predicate.
      Returns:
      this
    • neverSkipVanillaRender

      public BlockEntityVisualizerBuilder<T> neverSkipVanillaRender()
      Sets a predicate to never skip rendering with the vanilla BlockEntityRenderer.
      Returns:
      this
    • apply

      public dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer<T> apply(boolean enabledByDefault)
      Constructs the block entity visualizer and sets it for the block entity type.
      Returns:
      The block entity visualizer.