Class SimpleEntityVisualizer.Builder<T extends net.minecraft.world.entity.Entity>
java.lang.Object
dev.engine_room.flywheel.lib.visualization.SimpleEntityVisualizer.Builder<T>
- Type Parameters:
T- The type of the entity.
- Enclosing class:
- SimpleEntityVisualizer<T extends net.minecraft.world.entity.Entity>
public static final class SimpleEntityVisualizer.Builder<T extends net.minecraft.world.entity.Entity>
extends Object
An object to configure the visualizer for an entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply()Constructs the entity visualizer and sets it for the entity type.factory(SimpleEntityVisualizer.Factory<T> visualFactory) Sets the visual factory for the entity.Sets a predicate to always skip rendering with the vanillaEntityRenderer.skipVanillaRender(Predicate<T> skipVanillaRender) Sets a predicate to determine whether to skip rendering with the vanillaEntityRenderer.
-
Constructor Details
-
Builder
-
-
Method Details
-
factory
Sets the visual factory for the entity.- Parameters:
visualFactory- The visual factory.- Returns:
this
-
skipVanillaRender
Sets a predicate to determine whether to skip rendering with the vanillaEntityRenderer.- Parameters:
skipVanillaRender- The predicate.- Returns:
this
-
neverSkipVanillaRender
Sets a predicate to always skip rendering with the vanillaEntityRenderer.- Returns:
this
-
apply
Constructs the entity visualizer and sets it for the entity type.- Returns:
- The entity visualizer.
-