Package dev.engine_room.vanillin.config
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 Summary
ConstructorsConstructorDescriptionBlockEntityVisualizerBuilder(Configurator configurator, net.minecraft.world.level.block.entity.BlockEntityType<T> type) -
Method Summary
Modifier and TypeMethodDescriptiondev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer<T>apply(boolean enabledByDefault) Constructs the block entity visualizer and sets it for the block entity type.factory(dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T> visualFactory) Sets the visual factory for the block entity.Sets a predicate to never skip rendering with the vanillaBlockEntityRenderer.skipVanillaRender(Predicate<T> skipVanillaRender) Sets a predicate to determine whether to skip rendering with the vanillaBlockEntityRenderer.
-
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
Sets a predicate to determine whether to skip rendering with the vanillaBlockEntityRenderer.- Parameters:
skipVanillaRender- The predicate.- Returns:
this
-
neverSkipVanillaRender
Sets a predicate to never skip rendering with the vanillaBlockEntityRenderer.- 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.
-