Class WorldEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.world.WorldEvent
Direct Known Subclasses:
ChunkEvent, PortalCreateEvent, SpawnChangeEvent, StructureGrowEvent, WorldInitEvent, WorldLoadEvent, WorldSaveEvent, WorldUnloadEvent

public abstract class WorldEvent
extends Event
Represents events within a world
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    Event.Result
  • Constructor Summary

    Constructors 
    Constructor Description
    WorldEvent​(World world)  
  • Method Summary

    Modifier and Type Method Description
    World getWorld()
    Gets the world primarily involved with this event

    Methods inherited from class org.bukkit.event.Event

    getEventName, getHandlers, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getWorld

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