Class SimpleBlockEntityVisualizer.Builder<T extends net.minecraft.world.level.block.entity.BlockEntity>
java.lang.Object
dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Builder<T>
- Type Parameters:
T- The type of the block entity.
- Enclosing class:
- SimpleBlockEntityVisualizer<T extends net.minecraft.world.level.block.entity.BlockEntity>
public static final class SimpleBlockEntityVisualizer.Builder<T extends net.minecraft.world.level.block.entity.BlockEntity>
extends Object
An object to configure the visualizer for a block entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply()Constructs the block entity visualizer and sets it for the block entity type.factory(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
-
Builder
-
-
Method Details
-
factory
public SimpleBlockEntityVisualizer.Builder<T> factory(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
Constructs the block entity visualizer and sets it for the block entity type.- Returns:
- The block entity visualizer.
-