mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Made it build
This commit is contained in:
parent
9f32ba81b1
commit
63523d712b
7 changed files with 30 additions and 9 deletions
|
@ -72,7 +72,7 @@ public final class ConnectionRequestEvent implements Event, Cancellable {
|
|||
* @return the cancel status of this event
|
||||
*/
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
public boolean cancelled() {
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
|
@ -82,6 +82,30 @@ public final class ConnectionRequestEvent implements Event, Cancellable {
|
|||
* @param cancelled the cancel status of this event.
|
||||
*/
|
||||
@Override
|
||||
public void cancelled(boolean cancelled) {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
/**
|
||||
* The cancel status of this event. If this event is cancelled, the connection will be rejected.
|
||||
*
|
||||
* @return the cancel status of this event
|
||||
* @deprecated use {@link #cancelled()} instead
|
||||
*/
|
||||
@Override
|
||||
@Deprecated(forRemoval = true)
|
||||
public boolean isCancelled() {
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the cancel status of this event. If this event is canceled, the connection will be rejected.
|
||||
*
|
||||
* @param cancelled the cancel status of this event.
|
||||
* @deprecated use {@link #cancelled(boolean)} instead
|
||||
*/
|
||||
@Override
|
||||
@Deprecated(forRemoval = true)
|
||||
public void setCancelled(boolean cancelled) {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue