001    package org.bukkit.event.world;
002    
003    import org.bukkit.World;
004    import org.bukkit.event.Event;
005    
006    /**
007     * Represents events within a world
008     */
009    public abstract class WorldEvent extends Event {
010        private final World world;
011    
012        public WorldEvent(final World world) {
013            this.world = world;
014        }
015    
016        /**
017         * Gets the world primarily involved with this event
018         *
019         * @return World which caused this event
020         */
021        public World getWorld() {
022            return world;
023        }
024    }