Class SimpleEntityVisualizer<T extends net.minecraft.world.entity.Entity>

java.lang.Object
dev.engine_room.flywheel.lib.visualization.SimpleEntityVisualizer<T>
All Implemented Interfaces:
EntityVisualizer<T>

public final class SimpleEntityVisualizer<T extends net.minecraft.world.entity.Entity> extends Object implements EntityVisualizer<T>
  • Constructor Details

  • Method Details

    • createVisual

      public EntityVisual<? super T> createVisual(VisualizationContext ctx, T entity, float partialTick)
      Description copied from interface: EntityVisualizer
      Given an entity and context, constructs a visual for the entity.
      Specified by:
      createVisual in interface EntityVisualizer<T extends net.minecraft.world.entity.Entity>
      Parameters:
      ctx - Context for creating a visual.
      entity - The entity to construct a visual for.
      Returns:
      The visual.
    • skipVanillaRender

      public boolean skipVanillaRender(T entity)
      Description copied from interface: EntityVisualizer
      Checks if the given entity should not render with the vanilla EntityRenderer.
      Specified by:
      skipVanillaRender in interface EntityVisualizer<T extends net.minecraft.world.entity.Entity>
      Parameters:
      entity - The entity to check.
      Returns:
      true if the entity should not render with the vanilla EntityRenderer, false if it should.
    • builder

      public static <T extends net.minecraft.world.entity.Entity> SimpleEntityVisualizer.Builder<T> builder(net.minecraft.world.entity.EntityType<T> type)
      Get an object to configure the visualizer for the given entity type.
      Type Parameters:
      T - The type of the entity.
      Parameters:
      type - The entity type to configure.
      Returns:
      The configuration object.