Class ChunkWatchEvent.Watch
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.ChunkWatchEvent
net.neoforged.neoforge.event.level.ChunkWatchEvent.Watch
- Enclosing class:
ChunkWatchEvent
This event is fired whenever a
ServerPlayer
begins watching a chunk and the chunk is queued up for
sending to the client (see ChunkMap.markChunkPendingToSend(ServerPlayer, LevelChunk)
).
This event must NOT be used to send additional chunk-related data to the client as the client will not be aware
of the chunk yet when this event fires. ChunkWatchEvent.Sent
should be used for this purpose instead
This event is not cancellable and does not
.
invalid reference
have a result
This event is fired on the main Forge event bus only on the logical server.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.level.ChunkWatchEvent
ChunkWatchEvent.Sent, ChunkWatchEvent.UnWatch, ChunkWatchEvent.Watch
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.event.level.ChunkWatchEvent
getLevel, getPlayer, getPos
-
Field Details
-
chunk
-
-
Constructor Details
-
Watch
-
-
Method Details
-
getChunk
-