This commit is contained in:
坏黑
2018-04-26 23:33:44 +08:00
parent 381d96c5b1
commit 93e84b1b80
40 changed files with 444 additions and 278 deletions

View File

@@ -17,6 +17,7 @@ public class DefaultEvent extends Event {
return this.player;
}
@Override
public HandlerList getHandlers() {
return handlers;
}

View File

@@ -21,7 +21,8 @@ public class DefaultEvent2 extends PlayerEvent
return DefaultEvent2.handlers;
}
public HandlerList getHandlers() {
@Override
public HandlerList getHandlers() {
return DefaultEvent2.handlers;
}
@@ -34,11 +35,13 @@ public class DefaultEvent2 extends PlayerEvent
this.cancelled = false;
}
public boolean isCancelled() {
@Override
public boolean isCancelled() {
return this.cancelled;
}
public void setCancelled(final boolean cancelled) {
@Override
public void setCancelled(final boolean cancelled) {
this.cancelled = cancelled;
}
}

View File

@@ -24,17 +24,20 @@ public class PlayerJumpEvent
return this.player;
}
public boolean isCancelled()
@Override
public boolean isCancelled()
{
return this.isCancelled;
}
public void setCancelled(boolean e)
@Override
public void setCancelled(boolean e)
{
this.isCancelled = e;
}
public HandlerList getHandlers()
@Override
public HandlerList getHandlers()
{
return handlers;
}

View File

@@ -18,6 +18,7 @@ public class PlayerLoadedEvent extends Event {
return this.player;
}
@Override
public HandlerList getHandlers() {
return handlers;
}