AbstractStaticdimensionsStaticworldStaticplayersStaticentitiesStaticownershipStaticblocksStaticweatherStaticgetReturns all players using the world cache
StaticgetReturns one player by id using the world player index cache
StaticgetStaticsetStaticgetStaticgetGets an entity component using the entity component cache Results are memorized per tick for the same entity/component pair
StaticgetGets all entities owned by a given owner using the entity ownership cache
Optionaloptions: EntityQueryOptionsStaticgetGets a block at a location using the block cache Results are memorized per tick, clearing automatically on next tick
StaticgetReturns the current weather for a dimension using the weather cache
There is no native getter for weather; the cache listens to
world.afterEvents.weatherChange and provides a synchronous read.
StaticsetSets the weather for a dimension and updates cache state
Optionalduration: number
Public cache layer Use this class as the main entrypoint for caching APIs Prefer the unified methods below over direct world/player calls