Class Trail3D
- All Implemented Interfaces:
AutoCloseable
Bounded point-ring trail rendered as a camera-aware ribbon.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPoint(net.minecraft.world.phys.Vec3 point) clear()protected voidextract(WorldRenderContext context) protected WorldBoundslocalBounds(WorldRenderContext context) Returns local bounds for the current extraction.intstroke(WorldStroke value) Methods inherited from class WorldObject
animation, animationValue, close, closed, effectiveTransform, effects, effects, localBounds, material, material, pickable, pickable, pickable, pickId, position, position, releaseResources, self, transform, transform, updater, visible, visible
-
Constructor Details
-
Trail3D
public Trail3D() -
Trail3D
public Trail3D(int capacity)
-
-
Method Details
-
addPoint
-
clear
-
stroke
-
pointCount
public int pointCount() -
localBounds
Description copied from class:WorldObjectReturns 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:
localBoundsin classWorldObject<Trail3D>- Parameters:
context- current extraction context- Returns:
- local bounds, or
nullwhen the object cannot be culled
-
extract
- Specified by:
extractin classWorldObject<Trail3D>
-