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) protected final floatanimationValue(WorldRenderContext context) 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) 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
-
updater
-
pickable
-
pickable
-
pickable
public boolean pickable() -
pickId
public long pickId() -
effectiveTransform
-
animationValue
-
localBounds
-
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
-
releaseResources
protected void releaseResources() -
close
public final void close()- Specified by:
closein interfaceAutoCloseable
-