Package com.jozufozu.flywheel.lib.visual
Class SimpleEntityVisualizer.Builder<T extends net.minecraft.world.entity.Entity>
java.lang.Object
com.jozufozu.flywheel.lib.visual.SimpleEntityVisualizer.Builder<T>
- Type Parameters:
T- The type of the entity.
- Enclosing class:
- SimpleEntityVisualizer<T extends net.minecraft.world.entity.Entity>
public static class SimpleEntityVisualizer.Builder<T extends net.minecraft.world.entity.Entity>
extends Object
An object to configure the visualizer for an entity.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.world.entity.EntityType<T>protected @Nullable SimpleEntityVisualizer.Factory<T> -
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.
-
Field Details
-
type
-
visualFactory
@Nullable protected @Nullable SimpleEntityVisualizer.Factory<T extends net.minecraft.world.entity.Entity> visualFactory -
skipVanillaRender
-
-
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.
-