Contents
Class ChunkPreLoadProcessEvent
java.lang.Object
com.hypixel.hytale.server.core.universe.world.events.ChunkEvent
com.hypixel.hytale.server.core.universe.world.events.ChunkPreLoadProcessEvent
- All Implemented Interfaces:
IBaseEvent<String>, IEvent<String>, IProcessedEvent
An event that is fired before a chunk is loaded and processed.
-
Constructor Summary
ConstructorsConstructorDescriptionChunkPreLoadProcessEvent(World world, Holder<ChunkStore> holder, WorldChunk chunk, boolean newlyGenerated, long lastDispatchNanos) Default Constructor for aChunkPreLoadProcessEventinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleandidLog()getWorld()booleanvoidprocessEvent(String hookName) Called to process the event with the given hook name.toString()Methods inherited from class ChunkEvent
getChunk
-
Constructor Details
-
ChunkPreLoadProcessEvent
public ChunkPreLoadProcessEvent(@Nonnull World world, @Nonnull Holder<ChunkStore> holder, @Nonnull WorldChunk chunk, boolean newlyGenerated, long lastDispatchNanos) Default Constructor for aChunkPreLoadProcessEventinstance.- Parameters:
world- the world the chunk belongs to.holder- the chunk store holder.chunk- the chunk being loaded.newlyGenerated- whether the chunk is newly generated.lastDispatchNanos- the last dispatch time in nanoseconds.
-
-
Method Details
-
isNewlyGenerated
public boolean isNewlyGenerated()- Returns:
trueif the chunk is newly generated,falseif it is loaded.
-
getHolder
- Returns:
- the chunk store holder.
-
getWorld
- Returns:
- the world the chunk 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
- Overrides:
toStringin classChunkEvent
-