-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
recycle BedrockPacketWrapper & add flag inheritance
- Loading branch information
Showing
6 changed files
with
90 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
bedrock-connection/src/main/java/org/cloudburstmc/protocol/bedrock/util/BatchFlag.java
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
bedrock-connection/src/main/java/org/cloudburstmc/protocol/bedrock/util/PacketFlag.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.cloudburstmc.protocol.bedrock.util; | ||
|
||
public interface PacketFlag { | ||
|
||
/** | ||
* Whether this flag can be passed from packet wrapper to batch wrapper. | ||
* @return true if the flag can be passed | ||
*/ | ||
default boolean canInherit() { | ||
return true; | ||
} | ||
} |