Deprecation cleanup.
This commit is contained in:
@@ -14,19 +14,17 @@ public class CreeperPowerEvent extends EntityEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
||||
private boolean canceled;
|
||||
private PowerCause cause;
|
||||
private final PowerCause cause;
|
||||
private Entity bolt;
|
||||
|
||||
public CreeperPowerEvent(Entity creeper, Entity bolt, PowerCause cause) {
|
||||
super(Type.CREEPER_POWER, creeper);
|
||||
public CreeperPowerEvent(final Entity creeper, final Entity bolt, final PowerCause cause) {
|
||||
this(creeper, cause);
|
||||
this.bolt = bolt;
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public CreeperPowerEvent(Entity creeper, PowerCause cause) {
|
||||
super(Type.CREEPER_POWER, creeper);
|
||||
public CreeperPowerEvent(final Entity creeper, final PowerCause cause) {
|
||||
super(creeper);
|
||||
this.cause = cause;
|
||||
this.bolt = null;
|
||||
}
|
||||
|
||||
public boolean isCancelled() {
|
||||
|
||||
Reference in New Issue
Block a user