dev.polymodloader.api.event.world
이 페이지는 소스의 Javadoc에서 ./gradlew apiReference로 만든 것입니다. 설명은 코드에 적힌 영어 그대로입니다. 직접 고치지 말고 소스의 주석을 고친 뒤 다시 만드세요.
| 형식 | 종류 | 설명 |
|---|---|---|
ChunkListener | 함수형 인터페이스 | Listener for WorldEvents.CHUNK_LOADED and WorldEvents.CHUNK_UNLOADED. |
WorldEvents | 클래스 | Server-side dimension events. |
WorldListener | 함수형 인터페이스 | Listener for WorldEvents.LOADED, WorldEvents.UNLOADED, and WorldEvents.SAVING. |
WorldReadyListener | 함수형 인터페이스 | Listener for WorldEvents.READY. |
ChunkListener
함수형 인터페이스 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전
public interface ChunkListener
Listener for WorldEvents.CHUNK_LOADED and WorldEvents.CHUNK_UNLOADED.
onChunk(WorldView, int, int)
void onChunk(WorldView world, int chunkX, int chunkZ)
추가된 버전 0.1.0-alpha.4 또는 그 이전
A chunk of world; coordinates are chunk coordinates. Keep it cheap: chunks load often.
| 인자 | 타입 | 설명 |
|---|---|---|
world | WorldView | — |
chunkX | int | — |
chunkZ | int | — |
WorldEvents
클래스 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전
public final class WorldEvents
Server-side dimension events. Per dimension and server start the order is LOADED, READY, SAVING (on every save), UNLOADED. Fabric API: ServerWorldEvents; NeoForge: LevelEvent.Load, Unload, Save.
| 상수·필드 | 타입 | 설명 |
|---|---|---|
LOADED | EventKey<WorldListener> | The server created every dimension of the world; fired for each, before spawn chunks are prepared and before the first tick. Dimensions are not saved or ticking yet. |
SAVING | EventKey<WorldListener> | A dimension is about to be saved (autosave, /save-all, or stopping), before its chunks and level data are written; changes made now are saved with it. |
UNLOADED | EventKey<WorldListener> | The stopping server is about to close a dimension, after it was saved; the last moment to read it. Changes are not saved any more. |
READY | EventKey<WorldReadyListener> | A dimension ticks for the first time after it was loaded or created; a good moment to read WorldView.storage. Fired once per dimension per server start. |
CHUNK_LOADED | EventKey<ChunkListener> | A chunk finished loading (from disk or newly generated) on the server. |
CHUNK_UNLOADED | EventKey<ChunkListener> | A chunk is about to be unloaded on the server; it has been saved. |
WorldListener
함수형 인터페이스 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전
public interface WorldListener
Listener for WorldEvents.LOADED, WorldEvents.UNLOADED, and WorldEvents.SAVING.
onWorld(WorldView)
void onWorld(WorldView world)
추가된 버전 0.1.0-alpha.4 또는 그 이전
Called on the server thread; world is valid only during the call.
| 인자 | 타입 | 설명 |
|---|---|---|
world | WorldView | — |
WorldReadyListener
함수형 인터페이스 · 안정성 PREVIEW · 추가된 버전 0.1.0-alpha.4 또는 그 이전
public interface WorldReadyListener
Listener for WorldEvents.READY.
onWorldReady(WorldView)
void onWorldReady(WorldView world)
추가된 버전 0.1.0-alpha.4 또는 그 이전
Called on the server thread at the start of the dimension's first tick.
| 인자 | 타입 | 설명 |
|---|---|---|
world | WorldView | — |