Generic cleanup of warnings, whitespace and style.
This commit is contained in:
@@ -5,6 +5,7 @@ import org.bukkit.Chunk;
|
||||
/**
|
||||
* Represents a Chunk related event
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ChunkEvent extends WorldEvent {
|
||||
protected Chunk chunk;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import org.bukkit.Chunk;
|
||||
/**
|
||||
* Called when a chunk is loaded
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ChunkLoadEvent extends ChunkEvent {
|
||||
private final boolean newChunk;
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import org.bukkit.generator.BlockPopulator;
|
||||
*
|
||||
* If your intent is to populate the chunk using this event, please see {@link BlockPopulator}
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ChunkPopulateEvent extends ChunkEvent {
|
||||
public ChunkPopulateEvent(final Chunk chunk) {
|
||||
super(Type.CHUNK_POPULATED, chunk);
|
||||
|
||||
@@ -6,6 +6,7 @@ import org.bukkit.event.Cancellable;
|
||||
/**
|
||||
* Called when a chunk is unloaded
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ChunkUnloadEvent extends ChunkEvent implements Cancellable {
|
||||
private boolean cancel = false;
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ import java.util.Collection;
|
||||
/**
|
||||
* Called when the world attempts to create a matching end to a portal
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class PortalCreateEvent extends WorldEvent implements Cancellable {
|
||||
private boolean cancel = false;
|
||||
private ArrayList<Block> blocks = new ArrayList<Block>();
|
||||
|
||||
@@ -7,6 +7,7 @@ import org.bukkit.Location;
|
||||
* An event that is called when a world's spawn changes. The
|
||||
* world's previous spawn location is included.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class SpawnChangeEvent extends WorldEvent {
|
||||
private Location previousLocation;
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public class StructureGrowEvent extends WorldEvent implements Cancellable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if structure was grown using bonemeal.
|
||||
* Checks if structure was grown using bonemeal.
|
||||
*
|
||||
* @return True if the structure was grown using bonemeal.
|
||||
*/
|
||||
|
||||
@@ -6,6 +6,7 @@ import org.bukkit.event.Event;
|
||||
/**
|
||||
* Represents events within a world
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class WorldEvent extends Event {
|
||||
private final World world;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import org.bukkit.World;
|
||||
/**
|
||||
* Called when a World is initializing
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class WorldInitEvent extends WorldEvent {
|
||||
public WorldInitEvent(World world) {
|
||||
super(Type.WORLD_INIT, world);
|
||||
|
||||
@@ -5,6 +5,7 @@ import org.bukkit.World;
|
||||
/**
|
||||
* Called when a World is loaded
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class WorldLoadEvent extends WorldEvent {
|
||||
public WorldLoadEvent(World world) {
|
||||
super(Type.WORLD_LOAD, world);
|
||||
|
||||
@@ -2,6 +2,7 @@ package org.bukkit.event.world;
|
||||
|
||||
import org.bukkit.World;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class WorldSaveEvent extends WorldEvent {
|
||||
public WorldSaveEvent(World world) {
|
||||
super(Type.WORLD_SAVE, world);
|
||||
|
||||
@@ -6,6 +6,7 @@ import org.bukkit.event.Cancellable;
|
||||
/**
|
||||
* Called when a World is unloaded
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class WorldUnloadEvent extends WorldEvent implements Cancellable {
|
||||
private boolean isCancelled;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user