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 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

      public EntityVisualizerBuilder<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 EntityVisualizerBuilder<T> neverSkipVanillaRender()
      Sets a predicate to always skip rendering with the vanilla EntityRenderer.
      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.