Uses of Class
net.minecraftforge.event.world.WorldEvent

Packages that use WorldEvent
Package
Description
 
  • Uses of WorldEvent in net.minecraftforge.event.world

    Modifier and Type
    Class
    Description
    class 
    ChunkDataEvent is fired when an event involving chunk data occurs.
    If a method utilizes this Event as its parameter, the method will receive every child event of this class.

    ChunkDataEvent.data contains the NBTTagCompound containing the chunk data for this event.

    All children of this event are fired on the MinecraftForge.EVENT_BUS.
    static class 
    ChunkDataEvent.Load is fired when vanilla Minecraft attempts to load Chunk data.
    This event is fired during chunk loading in {@link net.minecraft.world.chunk.storage.ChunkSerializer.read(ServerWorld, TemplateManager, PointOfInterestManager, ChunkPos, CompoundNBT)} which means it is async, so be careful.

    This event is not Cancelable.

    This event does not have a result.
    static class 
    ChunkDataEvent.Save is fired when vanilla Minecraft attempts to save Chunk data.
    This event is fired during chunk saving in AnvilChunkLoader#saveChunk(World, Chunk).
    class 
    ChunkEvent is fired when an event involving a chunk occurs.
    If a method utilizes this Event as its parameter, the method will receive every child event of this class.

    ChunkEvent.chunk contains the Chunk this event is affecting.

    All children of this event are fired on the MinecraftForge.EVENT_BUS.
    static class 
    ChunkEvent.Load is fired when vanilla Minecraft attempts to load a Chunk into the world.
    This event is fired during chunk loading in
    ChunkProviderClient#loadChunk(int, int),
    Chunk.onChunkLoad().
    static class 
    ChunkEvent.Unload is fired when vanilla Minecraft attempts to unload a Chunk from the world.
    This event is fired during chunk unloading in
    Chunk.onChunkUnload().
    class 
    SaplingGrowTreeEvent is fired when a sapling grows into a tree.
    This event is fired during sapling growth in BlockSapling#generateTree(World, BlockPos, IBlockState, Random).

    SaplingGrowTreeEvent.pos contains the coordinates of the growing sapling.
    class 
    This event is fired when all players are asleep and the time should be set to day.
    setWakeUpTime(wakeUpTime) sets a new time that will be added to the dayTime.
    static class 
    Called by WorldServer when it attempts to create a spawnpoint for a dimension.
    static class 
    WorldEvent.Load is fired when Minecraft loads a world.
    This event is fired when a world is loaded in WorldClient#WorldClient(NetHandlerPlayClient, WorldSettings, int, EnumDifficulty, Profiler), MinecraftServer#loadAllWorlds(String, String, long, WorldType, String), IntegratedServer#loadAllWorlds(String, String, long, WorldType, String) DimensionManager#initDimension(int), and ForgeInternalHandler#onDimensionLoad(Load).
    static class 
    Called by WorldServer to gather a list of all possible entities that can spawn at the specified location.
    static class 
    WorldEvent.Save is fired when Minecraft saves a world.
    This event is fired when a world is saved in WorldServer#saveAllChunks(boolean, IProgressUpdate), ForgeInternalHandler#onDimensionSave(Save).
    static class 
    WorldEvent.Unload is fired when Minecraft unloads a world.
    This event is fired when a world is unloaded in Minecraft#loadWorld(WorldClient, String), MinecraftServer.stopServer(), DimensionManager#unloadWorlds(), ForgeInternalHandler#onDimensionUnload(Unload).