Class WorldObject<T extends WorldObject<T>>
java.lang.Object
com.render.api.world.WorldObject<T>
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
Arrow3D, BlockHighlight3D, Box3D, Circle3D, Cone3D, Cylinder3D, Decal3D, Image3D, InstanceBatch3D, Line3D, Model3D, Plane3D, Polyline3D, Sphere3D, Text3D, Trail3D, Waypoint3D, WorldLodGroup, WorldParticleSystem
Inert retained world object that becomes active only after
WorldScene.add(T).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanimation(WorldAnimation value) Attaches an independently controlled animation.Returns this object's independently controlled clock; attach an animation before calling.protected final floatanimationValue(WorldRenderContext context) protected WorldStrokeStroke used to conservatively inflate extraction bounds for pixel widths and miter joins.final voidclose()booleanclosed()protected final WorldTransformeffectiveTransform(WorldRenderContext context) effects()effects(WorldEffectStack value) protected abstract voidextract(WorldRenderContext context) protected WorldBoundsprotected WorldBoundslocalBounds(WorldRenderContext context) Returns local bounds for the current extraction.material()material(WorldMaterial value) booleanpickable()pickable(boolean value) pickable(long id) longpickId()position(double x, double y, double z) position(net.minecraft.world.phys.Vec3 value) protected voidprotected final Tself()transform(WorldTransform value) updater(WorldObjectUpdater<T> value) protected voidupdateState(WorldRenderContext context) Advances owned simulation before visibility tests, including hidden objects in enabled scenes.booleanvisible()visible(boolean value)
-
Constructor Details
-
WorldObject
public WorldObject()
-
-
Method Details
-
self
-
visible
-
visible
public boolean visible() -
closed
public boolean closed() -
transform
-
transform
-
position
-
position
-
material
-
material
-
effects
-
effects
-
animation
Attaches an independently controlled animation. Its sampled effect value multiplies mesh opacity once on both the direct material and any selected portable fallback, including same-frame backend recovery and glow coverage. -
animationPlayback
Returns this object's independently controlled clock; attach an animation before calling. -
updater
-
pickable
-
pickable
-
pickable
public boolean pickable() -
pickId
public long pickId() -
effectiveTransform
-
animationValue
-
localBounds
-
boundsStroke
Stroke used to conservatively inflate extraction bounds for pixel widths and miter joins. -
localBounds
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.- Parameters:
context- current extraction context- Returns:
- local bounds, or
nullwhen the object cannot be culled
-
extract
-
updateState
Advances owned simulation before visibility tests, including hidden objects in enabled scenes. -
releaseResources
protected void releaseResources() -
close
public final void close()- Specified by:
closein interfaceAutoCloseable
-