Class Trail3D

All Implemented Interfaces:
AutoCloseable

public final class Trail3D extends WorldObject<Trail3D>
Bounded point-ring trail rendered as a camera-aware ribbon.
  • Constructor Details

    • Trail3D

      public Trail3D()
    • Trail3D

      public Trail3D(int capacity)
  • Method Details

    • addPoint

      public Trail3D addPoint(net.minecraft.world.phys.Vec3 point)
    • clear

      public Trail3D clear()
    • stroke

      public Trail3D stroke(WorldStroke value)
    • pointCount

      public int pointCount()
    • localBounds

      protected WorldBounds localBounds(WorldRenderContext context)
      Description copied from class: WorldObject
      Returns local bounds for the current extraction. Dynamic objects may override this hook to share one immutable per-frame data snapshot between culling and command extraction. The default preserves the original context-independent bounds contract for existing subclasses.
      Overrides:
      localBounds in class WorldObject<Trail3D>
      Parameters:
      context - current extraction context
      Returns:
      local bounds, or null when the object cannot be culled
    • extract

      protected void extract(WorldRenderContext context)
      Specified by:
      extract in class WorldObject<Trail3D>