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

    Constructors
    Constructor
    Description
    ClientChunkUpdatedEvent(@NotNull net.minecraft.world.level.chunk.LevelChunk chunk)
    Constructs a chunk update event.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.world.level.chunk.LevelChunk
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.