Package net.minecraftforge.event.level
Class ChunkWatchEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.ChunkWatchEvent
- Direct Known Subclasses:
- ChunkWatchEvent.UnWatch,- ChunkWatchEvent.Watch
public class ChunkWatchEvent
extends net.minecraftforge.eventbus.api.Event
This event is fired whenever a chunk has a watch-related action.
 
The player's level may not be the same as the level of the chunk when the player is teleporting to another dimension.
This event is not cancellable and does not have a result.
This event is fired on the main Forge event bus only on the logical server.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThis event is fired when server sends "forget chunk" packet to theServerPlayer.static classThis event is fired when chunk data is sent to theServerPlayer(seePlayerChunkSender).Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ServerLevelprivate final ServerPlayerprivate final ChunkPos
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
level
- 
player
- 
pos
 
- 
- 
Constructor Details- 
ChunkWatchEvent
 
- 
- 
Method Details- 
getPlayerReturns the server player involved with the watch action.- Returns:
- the server player involved with the watch action
 
- 
getPosReturns the chunk position this watch event is affecting.- Returns:
- the chunk position this watch event is affecting
 
- 
getLevelReturns the server level containing the chunk.- Returns:
- the server level containing the chunk
 
 
-