Package com.minecolonies.core.event
Class ClientChunkUpdatedEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.minecolonies.core.event.ClientChunkUpdatedEvent
public final class ClientChunkUpdatedEvent
extends net.minecraftforge.eventbus.api.Event
This event is fired client-side after the colony chunk capabilities are synched to the player;
i.e. there might be an update to which colony claims a particular chunk. This is fired even if
no colony owns the chunk in question, as that may also be interesting; and even if the data did
not actually change, as it might still be new to the listener.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionClientChunkUpdatedEvent(@NotNull net.minecraft.world.level.chunk.LevelChunk chunk) Constructs a chunk update event. -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.level.chunk.LevelChunkgetChunk()Gets the chunk related to the event.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
ClientChunkUpdatedEvent
public ClientChunkUpdatedEvent(@NotNull @NotNull net.minecraft.world.level.chunk.LevelChunk chunk) Constructs a chunk update event.- Parameters:
chunk- The chunk that was updated.
-
-
Method Details
-
getChunk
@NotNull public @NotNull net.minecraft.world.level.chunk.LevelChunk getChunk()Gets the chunk related to the event.
-