Class EntityOutlineManager

java.lang.Object
com.render.api.EntityOutlineManager

public final class EntityOutlineManager extends Object
Tracks entity outline registrations and applies them during rendering.
  • Method Details

    • track

      public RenderRegistration track(net.minecraft.world.entity.Entity entity, EntityOutlineStyle style)
      Tracks an entity with the supplied outline style.
      Parameters:
      entity - entity to outline
      style - outline style to apply while the registration is active
      Returns:
      a handle that stops tracking the outline when closed
    • track

      public RenderRegistration track(net.minecraft.world.entity.Entity entity)
      Tracks an entity with the default outline style.
      Parameters:
      entity - entity to outline
      Returns:
      a handle that stops tracking the outline when closed
    • applyOutline

      public void applyOutline(net.minecraft.world.entity.Entity entity, net.minecraft.client.renderer.entity.state.EntityRenderState state)
      Applies the currently tracked outline style to a render state.
      Parameters:
      entity - entity being rendered
      state - render state receiving the outline color