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 Details

    • type

      protected net.minecraft.world.entity.EntityType<T extends net.minecraft.world.entity.Entity> type
    • visualFactory

      @Nullable protected @Nullable SimpleEntityVisualizer.Factory<T extends net.minecraft.world.entity.Entity> visualFactory
    • skipVanillaRender

      @Nullable protected @Nullable Predicate<T extends net.minecraft.world.entity.Entity> skipVanillaRender
  • Constructor Details

    • Builder

      public Builder(net.minecraft.world.entity.EntityType<T> type)
  • Method Details

    • factory

      Sets the visual factory for the entity.
      Parameters:
      visualFactory - The visual factory.
      Returns:
      this
    • skipVanillaRender

      public SimpleEntityVisualizer.Builder<T> skipVanillaRender(Predicate<T> skipVanillaRender)
      Sets a predicate to determine whether to skip rendering with the vanilla EntityRenderer.
      Parameters:
      skipVanillaRender - The predicate.
      Returns:
      this
    • neverSkipVanillaRender

      public SimpleEntityVisualizer.Builder<T> neverSkipVanillaRender()
      Sets a predicate to always skip rendering with the vanilla EntityRenderer.
      Returns:
      this
    • apply

      public SimpleEntityVisualizer<T> apply()
      Constructs the entity visualizer and sets it for the entity type.
      Returns:
      The entity visualizer.