본문으로 건너뛰기
버전: Minecraft 26.2

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.

인자타입설명
worldWorldView—
chunkXint—
chunkZint—

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.

상수·필드타입설명
LOADEDEventKey<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.
SAVINGEventKey<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.
UNLOADEDEventKey<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.
READYEventKey<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_LOADEDEventKey<ChunkListener>A chunk finished loading (from disk or newly generated) on the server.
CHUNK_UNLOADEDEventKey<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.

인자타입설명
worldWorldView—

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.

인자타입설명
worldWorldView—
Buy me a coffee