Package dev.engine_room.vanillin.config
Class EntityVisualizerBuilder<T extends net.minecraft.world.entity.Entity>
java.lang.Object
dev.engine_room.vanillin.config.EntityVisualizerBuilder<T>
- Type Parameters:
T- The type of the entity.
public final class EntityVisualizerBuilder<T extends net.minecraft.world.entity.Entity>
extends Object
An object to configure the visualizer for an entity.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityVisualizerBuilder(Configurator configurator, net.minecraft.world.entity.EntityType<T> type) -
Method Summary
Modifier and TypeMethodDescriptiondev.engine_room.flywheel.lib.visualization.SimpleEntityVisualizer<T> apply(boolean enabledByDefault) Constructs the entity visualizer and sets it for the entity type.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
-
EntityVisualizerBuilder
public EntityVisualizerBuilder(Configurator configurator, net.minecraft.world.entity.EntityType<T> type)
-
-
Method Details
-
factory
public EntityVisualizerBuilder<T> factory(dev.engine_room.flywheel.lib.visualization.SimpleEntityVisualizer.Factory<T> visualFactory) 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
public dev.engine_room.flywheel.lib.visualization.SimpleEntityVisualizer<T> apply(boolean enabledByDefault) Constructs the entity visualizer and sets it for the entity type.- Returns:
- The entity visualizer.
-