Contents
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 Summary
ConstructorsConstructorDescriptionChunkSectionPreLoadProcessEvent(World world, Holder<ChunkStore> holder, boolean newlyGenerated, long lastDispatchNanos) -
Method Summary
Modifier and TypeMethodDescriptionbooleandidLog()getWorld()booleanvoidprocessEvent(String hookName) Called to process the event with the given hook name.toString()
-
Constructor Details
-
ChunkSectionPreLoadProcessEvent
public ChunkSectionPreLoadProcessEvent(@Nonnull World world, @Nonnull Holder<ChunkStore> holder, boolean newlyGenerated, long lastDispatchNanos)
-
-
Method Details
-
isNewlyGenerated
public boolean isNewlyGenerated()- Returns:
trueif the section is newly generated,falseif it is loaded.
-
getHolder
- Returns:
- the section holder.
-
getWorld
- Returns:
- the world the section belongs to.
-
processEvent
Description copied from interface:IProcessedEventCalled to process the event with the given hook name.- Specified by:
processEventin interfaceIProcessedEvent- Parameters:
hookName- the name of the hook to process the event with
-
didLog
public boolean didLog()- Returns:
trueif a log has been made for this event taking too long,falseotherwise.
-
toString
-