Skip to content

Commit

Permalink
Deprecate setCancelSend and isCancelSend
Browse files Browse the repository at this point in the history
  • Loading branch information
Exceptionflug committed Dec 7, 2019
1 parent c1a0014 commit 0d51060
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@ public void handle(final AbstractPacketHandler abstractPacketHandler) {
throw CancelSendSignal.INSTANCE;
}

@Deprecated
public boolean isCancelSend() {
return cancelSend;
}

/**
* If set to true, the packet handler will throw an instance of {@link CancelSendSignal}. Since this is deprecated,
* use the setCancelled(boolean cancelled) method of the {@link de.exceptionflug.protocolize.api.event.PacketReceiveEvent}
* or {@link de.exceptionflug.protocolize.api.event.PacketSendEvent} instead.
* @param cancelSend
*/
@Deprecated
public void setCancelSend(final boolean cancelSend) {
this.cancelSend = cancelSend;
}
Expand Down

0 comments on commit 0d51060

Please sign in to comment.