Generic cleanup of warnings, whitespace and style.

This commit is contained in:
Erik Broes
2011-12-25 16:02:30 +01:00
parent d9c22be882
commit dce83b6ce4
257 changed files with 1408 additions and 1152 deletions

View File

@@ -5,6 +5,7 @@ import org.bukkit.Chunk;
/**
* Represents a Chunk related event
*/
@SuppressWarnings("serial")
public class ChunkEvent extends WorldEvent {
protected Chunk chunk;

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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>();

View File

@@ -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;

View File

@@ -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.
*/

View File

@@ -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;

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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;