Class WorldParticleSystem
- All Implemented Interfaces:
AutoCloseable
Pooled fixed-tick local particle simulation rendered as billboards.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceleration(net.minecraft.world.phys.Vec3 value) intintcapacity()longNumber of rejected spawns, including bounded pending-queue and live-capacity overflow.protected voidextract(WorldRenderContext context) protected WorldBoundsprotected voidsoft(boolean value) spawn(WorldParticleSystem.Spawn value) protected voidupdateState(WorldRenderContext context) Advances owned simulation before visibility tests, including hidden objects in enabled scenes.Methods inherited from class WorldObject
animation, animationPlayback, animationValue, boundsStroke, close, closed, effectiveTransform, effects, effects, localBounds, material, material, pickable, pickable, pickable, pickId, position, position, self, transform, transform, updater, visible, visible
-
Constructor Details
-
WorldParticleSystem
public WorldParticleSystem() -
WorldParticleSystem
public WorldParticleSystem(int capacity)
-
-
Method Details
-
spawn
-
acceleration
-
soft
-
activeCount
public int activeCount() -
droppedCount
public long droppedCount()Number of rejected spawns, including bounded pending-queue and live-capacity overflow. -
capacity
public int capacity() -
updateState
Description copied from class:WorldObjectAdvances owned simulation before visibility tests, including hidden objects in enabled scenes.- Overrides:
updateStatein classWorldObject<WorldParticleSystem>
-
localBounds
- Overrides:
localBoundsin classWorldObject<WorldParticleSystem>
-
extract
- Specified by:
extractin classWorldObject<WorldParticleSystem>
-
releaseResources
protected void releaseResources()- Overrides:
releaseResourcesin classWorldObject<WorldParticleSystem>
-