summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2012-01-30 21:32:48 +0100
committerEvilSeph <evilseph@gmail.com>2012-02-18 13:05:58 -0500
commit049a7cc1d09ff056929e39e26ec5c37405ed18ca (patch)
treefa3e6e16f87f023bc5837ae2636f2256753ff850 /src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
parent54004d7d4721a8234127967783c78fb73f991494 (diff)
downloadbukkit-049a7cc1d09ff056929e39e26ec5c37405ed18ca.tar
bukkit-049a7cc1d09ff056929e39e26ec5c37405ed18ca.tar.gz
bukkit-049a7cc1d09ff056929e39e26ec5c37405ed18ca.tar.lz
bukkit-049a7cc1d09ff056929e39e26ec5c37405ed18ca.tar.xz
bukkit-049a7cc1d09ff056929e39e26ec5c37405ed18ca.zip
Deprecation cleanup.
Diffstat (limited to 'src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java')
-rw-r--r--src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
index 03f719a6..87704328 100644
--- a/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
+++ b/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
@@ -15,13 +15,13 @@ import org.bukkit.event.HandlerList;
public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();
- private Location location;
+ private final Location location;
private boolean canceled;
- private CreatureType creatureType;
- private SpawnReason spawnReason;
+ private final CreatureType creatureType;
+ private final SpawnReason spawnReason;
- public CreatureSpawnEvent(Entity spawnee, CreatureType mobtype, Location loc, SpawnReason spawnReason) {
- super(Type.CREATURE_SPAWN, spawnee);
+ public CreatureSpawnEvent(final Entity spawnee, final CreatureType mobtype, final Location loc, final SpawnReason spawnReason) {
+ super(spawnee);
this.creatureType = mobtype;
this.location = loc;
this.spawnReason = spawnReason;