Class PulseChunkOptimizationEvent
java.lang.Object
org.bukkit.event.Event
dev.pulsemc.pulse.api.events.optimization.PulseChunkOptimizationEvent
- All Implemented Interfaces:
Cancellable
Triggered when Pulse detects massive block updates in a single chunk
and attempts to replace them with a single ChunkData packet.
If cancelled, the server will send the original individual block update packets.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChunk()Gets the chunk where the updates are happening.static HandlerListintGets the number of individual block update packets that were queued.Gets the player receiving the updates.booleanvoidsetCancelled(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PulseChunkOptimizationEvent
-
-
Method Details
-
getPlayer
Gets the player receiving the updates.- Returns:
- the player
-
getChunk
Gets the chunk where the updates are happening.- Returns:
- the chunk
-
getPacketCount
public int getPacketCount()Gets the number of individual block update packets that were queued.- Returns:
- packet count
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-