Class ChunkSectionPreLoadProcessEvent

java.lang.Object
com.hypixel.hytale.server.core.universe.world.events.ChunkSectionPreLoadProcessEvent
All Implemented Interfaces:
IBaseEvent<String>, IEvent<String>, IProcessedEvent

public class ChunkSectionPreLoadProcessEvent extends Object implements IProcessedEvent, IEvent<String>
An event that is fired before a section is loaded and processed.
  • Constructor Details

    • ChunkSectionPreLoadProcessEvent

      public ChunkSectionPreLoadProcessEvent(@Nonnull World world, @Nonnull Holder<ChunkStore> holder, boolean newlyGenerated, long lastDispatchNanos)
  • Method Details

    • isNewlyGenerated

      public boolean isNewlyGenerated()
      Returns:
      true if the section is newly generated, false if it is loaded.
    • getHolder

      public Holder<ChunkStore> getHolder()
      Returns:
      the section holder.
    • getWorld

      @Nonnull public World getWorld()
      Returns:
      the world the section belongs to.
    • processEvent

      public void processEvent(@Nonnull String hookName)
      Description copied from interface: IProcessedEvent
      Called to process the event with the given hook name.
      Specified by:
      processEvent in interface IProcessedEvent
      Parameters:
      hookName - the name of the hook to process the event with
    • didLog

      public boolean didLog()
      Returns:
      true if a log has been made for this event taking too long, false otherwise.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object