Class WorldEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.world.WorldEvent
Direct Known Subclasses:
AsyncStructureGenerateEvent, AsyncStructureSpawnEvent, ChunkEvent, GenericGameEvent, LootGenerateEvent, PortalCreateEvent, RaidEvent, SpawnChangeEvent, StructureGrowEvent, StructureLocateEvent, StructuresLocateEvent, TimeSkipEvent, WorldBorderEvent, WorldGameRuleChangeEvent, WorldInitEvent, WorldLoadEvent, WorldSaveEvent, WorldUnloadEvent

public abstract class WorldEvent extends Event
Represents events within a world
  • Constructor Details

  • Method Details

    • getWorld

      @NotNull public @NotNull World getWorld()
      Gets the world primarily involved with this event
      Returns:
      World which caused this event