Merge 1.18 Update

Merge pull request #577 from Xernium/future/1.18: [Future] Support for Minecraft 1.18
This commit is contained in:
FivePB (Xer)
2021-11-25 19:24:39 +01:00
committed by GitHub
6 changed files with 64 additions and 7 deletions

View File

@@ -55,7 +55,8 @@ public enum ProtocolVersion {
MINECRAFT_1_16_3(753, "1.16.3"),
MINECRAFT_1_16_4(754, "1.16.4", "1.16.5"),
MINECRAFT_1_17(755, "1.17"),
MINECRAFT_1_17_1(756, "1.17.1");
MINECRAFT_1_17_1(756, "1.17.1"),
MINECRAFT_1_18(757, "1.18");
private static final int SNAPSHOT_BIT = 30;

View File

@@ -57,6 +57,16 @@ public interface PlayerSettings {
*/
MainHand getMainHand();
/**
* Returns whether the client explicitly allows listing on the
* {@link com.velocitypowered.api.proxy.player.TabList} or not in
* anonymous TabList mode.
* This feature was introduced in 1.18.
*
* @return whether or not the client explicitly allows listing. Always false on older clients.
*/
boolean isClientListingAllowed();
enum ChatMode {
SHOWN,
COMMANDS_ONLY,