Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Reorganize networking components to Java Edition (part 1)
Dieser Commit ist enthalten in:
Ursprung
1c70776ed4
Commit
eef2b2040c
@ -48,8 +48,8 @@ import com.velocitypowered.proxy.console.VelocityConsole;
|
|||||||
import com.velocitypowered.proxy.event.VelocityEventManager;
|
import com.velocitypowered.proxy.event.VelocityEventManager;
|
||||||
import com.velocitypowered.proxy.network.ConnectionManager;
|
import com.velocitypowered.proxy.network.ConnectionManager;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
import com.velocitypowered.proxy.network.serialization.FaviconSerializer;
|
import com.velocitypowered.proxy.network.java.serialization.json.FaviconSerializer;
|
||||||
import com.velocitypowered.proxy.network.serialization.JavaPlayerIdentitySerializer;
|
import com.velocitypowered.proxy.network.java.serialization.json.JavaPlayerIdentitySerializer;
|
||||||
import com.velocitypowered.proxy.plugin.VelocityPluginManager;
|
import com.velocitypowered.proxy.plugin.VelocityPluginManager;
|
||||||
import com.velocitypowered.proxy.scheduler.VelocityScheduler;
|
import com.velocitypowered.proxy.scheduler.VelocityScheduler;
|
||||||
import com.velocitypowered.proxy.server.ServerMap;
|
import com.velocitypowered.proxy.server.ServerMap;
|
||||||
|
@ -36,16 +36,16 @@ import com.velocitypowered.proxy.VelocityServer;
|
|||||||
import com.velocitypowered.proxy.connection.client.HandshakeSessionHandler;
|
import com.velocitypowered.proxy.connection.client.HandshakeSessionHandler;
|
||||||
import com.velocitypowered.proxy.connection.client.LoginSessionHandler;
|
import com.velocitypowered.proxy.connection.client.LoginSessionHandler;
|
||||||
import com.velocitypowered.proxy.connection.client.StatusSessionHandler;
|
import com.velocitypowered.proxy.connection.client.StatusSessionHandler;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundSetCompressionPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftCipherDecoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftCipherEncoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftCompressDecoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftCompressorAndLengthEncoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftDecoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftEncoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.states.ProtocolStates;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundSetCompressionPacket;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftCipherDecoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftCipherEncoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftCompressDecoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftCompressorAndLengthEncoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftDecoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftEncoder;
|
|
||||||
import com.velocitypowered.proxy.network.registry.protocol.ProtocolRegistry;
|
import com.velocitypowered.proxy.network.registry.protocol.ProtocolRegistry;
|
||||||
import com.velocitypowered.proxy.network.registry.state.ProtocolStates;
|
|
||||||
import com.velocitypowered.proxy.util.except.QuietDecoderException;
|
import com.velocitypowered.proxy.util.except.QuietDecoderException;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.channel.Channel;
|
import io.netty.channel.Channel;
|
||||||
|
@ -17,11 +17,11 @@
|
|||||||
|
|
||||||
package com.velocitypowered.proxy.connection;
|
package com.velocitypowered.proxy.connection;
|
||||||
|
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
|
|
||||||
public interface MinecraftSessionHandler extends PacketHandler {
|
public interface MinecraftSessionHandler extends JavaPacketHandler {
|
||||||
|
|
||||||
default boolean beforeHandle() {
|
default boolean beforeHandle() {
|
||||||
return false;
|
return false;
|
||||||
|
@ -19,7 +19,7 @@ package com.velocitypowered.proxy.connection.backend;
|
|||||||
|
|
||||||
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
||||||
import com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeHandshakeBackendPhase;
|
import com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeHandshakeBackendPhase;
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides connection phase specific actions.
|
* Provides connection phase specific actions.
|
||||||
|
@ -19,7 +19,7 @@ package com.velocitypowered.proxy.connection.backend;
|
|||||||
|
|
||||||
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
||||||
import com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeHandshakeBackendPhase;
|
import com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeHandshakeBackendPhase;
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains Vanilla {@link BackendConnectionPhase}s.
|
* Contains Vanilla {@link BackendConnectionPhase}s.
|
||||||
|
@ -34,17 +34,17 @@ import com.velocitypowered.proxy.connection.MinecraftConnection;
|
|||||||
import com.velocitypowered.proxy.connection.MinecraftSessionHandler;
|
import com.velocitypowered.proxy.connection.MinecraftSessionHandler;
|
||||||
import com.velocitypowered.proxy.connection.client.ClientPlaySessionHandler;
|
import com.velocitypowered.proxy.connection.client.ClientPlaySessionHandler;
|
||||||
import com.velocitypowered.proxy.connection.util.ConnectionMessages;
|
import com.velocitypowered.proxy.connection.util.ConnectionMessages;
|
||||||
import com.velocitypowered.proxy.network.PluginMessageUtil;
|
import com.velocitypowered.proxy.network.java.PluginMessageUtil;
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundAvailableCommandsPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundBossBarPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundDisconnectPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundKeepAlivePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundPlayerListItemPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundPluginMessagePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundTabCompleteResponsePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundAvailableCommandsPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundBossBarPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundDisconnectPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundKeepAlivePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundPlayerListItemPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundPluginMessagePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundTabCompleteResponsePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundPluginMessagePacket;
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.buffer.ByteBufUtil;
|
import io.netty.buffer.ByteBufUtil;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
|
@ -28,8 +28,8 @@ import com.velocitypowered.proxy.connection.MinecraftConnection;
|
|||||||
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
||||||
import com.velocitypowered.proxy.network.buffer.ByteBufDataInput;
|
import com.velocitypowered.proxy.network.buffer.ByteBufDataInput;
|
||||||
import com.velocitypowered.proxy.network.buffer.ByteBufDataOutput;
|
import com.velocitypowered.proxy.network.buffer.ByteBufDataOutput;
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.server.VelocityRegisteredServer;
|
import com.velocitypowered.proxy.server.VelocityRegisteredServer;
|
||||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
|
@ -28,13 +28,13 @@ import com.velocitypowered.proxy.connection.VelocityConstants;
|
|||||||
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults;
|
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults;
|
||||||
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults.Impl;
|
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults.Impl;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundDisconnectPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundDisconnectPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundEncryptionRequestPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundEncryptionRequestPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundLoginPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundLoginPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundServerLoginSuccessPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundServerLoginSuccessPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundSetCompressionPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundSetCompressionPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundLoginPluginResponsePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundLoginPluginResponsePacket;
|
||||||
import com.velocitypowered.proxy.network.registry.state.ProtocolStates;
|
import com.velocitypowered.proxy.network.java.states.ProtocolStates;
|
||||||
import com.velocitypowered.proxy.util.except.QuietRuntimeException;
|
import com.velocitypowered.proxy.util.except.QuietRuntimeException;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
|
@ -31,11 +31,11 @@ import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
|||||||
import com.velocitypowered.proxy.connection.util.ConnectionMessages;
|
import com.velocitypowered.proxy.connection.util.ConnectionMessages;
|
||||||
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults;
|
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults;
|
||||||
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults.Impl;
|
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults.Impl;
|
||||||
import com.velocitypowered.proxy.network.PluginMessageUtil;
|
import com.velocitypowered.proxy.network.java.PluginMessageUtil;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundDisconnectPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundDisconnectPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundJoinGamePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundJoinGamePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundKeepAlivePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundKeepAlivePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundPluginMessagePacket;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
@ -20,7 +20,7 @@ package com.velocitypowered.proxy.connection.backend;
|
|||||||
import static com.velocitypowered.proxy.VelocityServer.GENERAL_GSON;
|
import static com.velocitypowered.proxy.VelocityServer.GENERAL_GSON;
|
||||||
import static com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeConstants.HANDSHAKE_HOSTNAME_TOKEN;
|
import static com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeConstants.HANDSHAKE_HOSTNAME_TOKEN;
|
||||||
import static com.velocitypowered.proxy.network.HandlerNames.HANDLER;
|
import static com.velocitypowered.proxy.network.HandlerNames.HANDLER;
|
||||||
import static com.velocitypowered.proxy.network.PluginMessageUtil.channelIdForVersion;
|
import static com.velocitypowered.proxy.network.java.PluginMessageUtil.channelIdForVersion;
|
||||||
|
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
@ -40,11 +40,11 @@ import com.velocitypowered.proxy.connection.MinecraftConnectionAssociation;
|
|||||||
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
||||||
import com.velocitypowered.proxy.connection.registry.DimensionRegistry;
|
import com.velocitypowered.proxy.connection.registry.DimensionRegistry;
|
||||||
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults.Impl;
|
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults.Impl;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundJoinGamePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundJoinGamePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundHandshakePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundHandshakePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundServerLoginPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundServerLoginPacket;
|
||||||
import com.velocitypowered.proxy.network.registry.state.ProtocolStates;
|
import com.velocitypowered.proxy.network.java.states.ProtocolStates;
|
||||||
import com.velocitypowered.proxy.server.VelocityRegisteredServer;
|
import com.velocitypowered.proxy.server.VelocityRegisteredServer;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
|
@ -19,7 +19,7 @@ package com.velocitypowered.proxy.connection.client;
|
|||||||
|
|
||||||
import com.velocitypowered.proxy.connection.backend.VelocityServerConnection;
|
import com.velocitypowered.proxy.connection.backend.VelocityServerConnection;
|
||||||
import com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeHandshakeClientPhase;
|
import com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeHandshakeClientPhase;
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides connection phase specific actions.
|
* Provides connection phase specific actions.
|
||||||
|
@ -20,7 +20,7 @@ package com.velocitypowered.proxy.connection.client;
|
|||||||
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_13;
|
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_13;
|
||||||
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_16;
|
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_16;
|
||||||
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_8;
|
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_8;
|
||||||
import static com.velocitypowered.proxy.network.PluginMessageUtil.constructChannelsPacket;
|
import static com.velocitypowered.proxy.network.java.PluginMessageUtil.constructChannelsPacket;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
@ -41,23 +41,23 @@ import com.velocitypowered.proxy.connection.MinecraftSessionHandler;
|
|||||||
import com.velocitypowered.proxy.connection.backend.BackendConnectionPhases;
|
import com.velocitypowered.proxy.connection.backend.BackendConnectionPhases;
|
||||||
import com.velocitypowered.proxy.connection.backend.BungeeCordMessageResponder;
|
import com.velocitypowered.proxy.connection.backend.BungeeCordMessageResponder;
|
||||||
import com.velocitypowered.proxy.connection.backend.VelocityServerConnection;
|
import com.velocitypowered.proxy.connection.backend.VelocityServerConnection;
|
||||||
import com.velocitypowered.proxy.network.PluginMessageUtil;
|
import com.velocitypowered.proxy.network.java.PluginMessageUtil;
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundBossBarPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundJoinGamePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundPluginMessagePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundRespawnPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundTabCompleteResponsePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundTabCompleteResponsePacket.Offer;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundTitlePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundChatPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundClientSettingsPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundKeepAlivePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundPluginMessagePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundResourcePackResponsePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundTabCompleteRequestPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.states.ProtocolStates;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundBossBarPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundJoinGamePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundPluginMessagePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundRespawnPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundTabCompleteResponsePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundTabCompleteResponsePacket.Offer;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundTitlePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundChatPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundClientSettingsPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundKeepAlivePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundPluginMessagePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundResourcePackResponsePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundTabCompleteRequestPacket;
|
|
||||||
import com.velocitypowered.proxy.network.registry.state.ProtocolStates;
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.buffer.ByteBufUtil;
|
import io.netty.buffer.ByteBufUtil;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
|
@ -19,7 +19,7 @@ package com.velocitypowered.proxy.connection.client;
|
|||||||
|
|
||||||
import static com.velocitypowered.api.proxy.player.ConnectionRequestBuilder.Status.ALREADY_CONNECTED;
|
import static com.velocitypowered.api.proxy.player.ConnectionRequestBuilder.Status.ALREADY_CONNECTED;
|
||||||
import static com.velocitypowered.proxy.connection.util.ConnectionRequestResults.plainResult;
|
import static com.velocitypowered.proxy.connection.util.ConnectionRequestResults.plainResult;
|
||||||
import static com.velocitypowered.proxy.network.PluginMessageUtil.channelIdForVersion;
|
import static com.velocitypowered.proxy.network.java.PluginMessageUtil.channelIdForVersion;
|
||||||
import static java.util.concurrent.CompletableFuture.completedFuture;
|
import static java.util.concurrent.CompletableFuture.completedFuture;
|
||||||
|
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
@ -57,18 +57,18 @@ import com.velocitypowered.proxy.connection.backend.VelocityServerConnection;
|
|||||||
import com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeConstants;
|
import com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeConstants;
|
||||||
import com.velocitypowered.proxy.connection.util.ConnectionMessages;
|
import com.velocitypowered.proxy.connection.util.ConnectionMessages;
|
||||||
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults.Impl;
|
import com.velocitypowered.proxy.connection.util.ConnectionRequestResults.Impl;
|
||||||
import com.velocitypowered.proxy.network.PluginMessageUtil;
|
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.PluginMessageUtil;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundChatPacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundDisconnectPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundChatPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundKeepAlivePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundDisconnectPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundKeepAlivePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundResourcePackRequestPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundTitlePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundResourcePackRequestPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundChatPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundTitlePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundClientSettingsPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundChatPacket;
|
||||||
import com.velocitypowered.proxy.network.registry.state.ProtocolStates;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundClientSettingsPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.states.ProtocolStates;
|
||||||
import com.velocitypowered.proxy.server.VelocityRegisteredServer;
|
import com.velocitypowered.proxy.server.VelocityRegisteredServer;
|
||||||
import com.velocitypowered.proxy.tablist.VelocityTabList;
|
import com.velocitypowered.proxy.tablist.VelocityTabList;
|
||||||
import com.velocitypowered.proxy.tablist.VelocityTabListLegacy;
|
import com.velocitypowered.proxy.tablist.VelocityTabListLegacy;
|
||||||
|
@ -29,13 +29,13 @@ import com.velocitypowered.proxy.connection.ConnectionTypes;
|
|||||||
import com.velocitypowered.proxy.connection.MinecraftConnection;
|
import com.velocitypowered.proxy.connection.MinecraftConnection;
|
||||||
import com.velocitypowered.proxy.connection.MinecraftSessionHandler;
|
import com.velocitypowered.proxy.connection.MinecraftSessionHandler;
|
||||||
import com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeConstants;
|
import com.velocitypowered.proxy.connection.forge.legacy.LegacyForgeConstants;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.legacy.LegacyDisconnectPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.legacy.LegacyHandshakePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.legacy.LegacyPingPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundHandshakePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.states.ProtocolStates;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.legacy.LegacyDisconnectPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.legacy.LegacyHandshakePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.legacy.LegacyPingPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundHandshakePacket;
|
|
||||||
import com.velocitypowered.proxy.network.registry.protocol.ProtocolRegistry;
|
import com.velocitypowered.proxy.network.registry.protocol.ProtocolRegistry;
|
||||||
import com.velocitypowered.proxy.network.registry.state.ProtocolStates;
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
|
@ -20,8 +20,8 @@ package com.velocitypowered.proxy.connection.client;
|
|||||||
import com.velocitypowered.proxy.connection.MinecraftSessionHandler;
|
import com.velocitypowered.proxy.connection.MinecraftSessionHandler;
|
||||||
import com.velocitypowered.proxy.connection.backend.BungeeCordMessageResponder;
|
import com.velocitypowered.proxy.connection.backend.BungeeCordMessageResponder;
|
||||||
import com.velocitypowered.proxy.connection.backend.VelocityServerConnection;
|
import com.velocitypowered.proxy.connection.backend.VelocityServerConnection;
|
||||||
import com.velocitypowered.proxy.network.PluginMessageUtil;
|
import com.velocitypowered.proxy.network.java.PluginMessageUtil;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundPluginMessagePacket;
|
||||||
|
|
||||||
public class InitialConnectSessionHandler implements MinecraftSessionHandler {
|
public class InitialConnectSessionHandler implements MinecraftSessionHandler {
|
||||||
|
|
||||||
|
@ -22,8 +22,8 @@ import com.velocitypowered.api.network.ProtocolVersion;
|
|||||||
import com.velocitypowered.api.proxy.connection.InboundConnection;
|
import com.velocitypowered.api.proxy.connection.InboundConnection;
|
||||||
import com.velocitypowered.proxy.connection.MinecraftConnection;
|
import com.velocitypowered.proxy.connection.MinecraftConnection;
|
||||||
import com.velocitypowered.proxy.connection.MinecraftConnectionAssociation;
|
import com.velocitypowered.proxy.connection.MinecraftConnectionAssociation;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundDisconnectPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundDisconnectPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundHandshakePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundHandshakePacket;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.SocketAddress;
|
import java.net.SocketAddress;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
@ -19,7 +19,7 @@ package com.velocitypowered.proxy.connection.client;
|
|||||||
|
|
||||||
import com.velocitypowered.api.proxy.player.java.JavaClientSettings;
|
import com.velocitypowered.api.proxy.player.java.JavaClientSettings;
|
||||||
import com.velocitypowered.api.proxy.player.java.SkinParts;
|
import com.velocitypowered.api.proxy.player.java.SkinParts;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundClientSettingsPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundClientSettingsPacket;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||||
|
|
||||||
|
@ -46,12 +46,12 @@ import com.velocitypowered.proxy.config.PlayerInfoForwarding;
|
|||||||
import com.velocitypowered.proxy.config.VelocityConfiguration;
|
import com.velocitypowered.proxy.config.VelocityConfiguration;
|
||||||
import com.velocitypowered.proxy.connection.MinecraftConnection;
|
import com.velocitypowered.proxy.connection.MinecraftConnection;
|
||||||
import com.velocitypowered.proxy.connection.MinecraftSessionHandler;
|
import com.velocitypowered.proxy.connection.MinecraftSessionHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundEncryptionRequestPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundEncryptionRequestPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundServerLoginSuccessPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundServerLoginSuccessPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundSetCompressionPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundSetCompressionPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundEncryptionResponsePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundEncryptionResponsePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundServerLoginPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundServerLoginPacket;
|
||||||
import com.velocitypowered.proxy.network.registry.state.ProtocolStates;
|
import com.velocitypowered.proxy.network.java.states.ProtocolStates;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.SocketAddress;
|
import java.net.SocketAddress;
|
||||||
|
@ -31,12 +31,12 @@ import com.velocitypowered.proxy.config.PingPassthroughMode;
|
|||||||
import com.velocitypowered.proxy.config.VelocityConfiguration;
|
import com.velocitypowered.proxy.config.VelocityConfiguration;
|
||||||
import com.velocitypowered.proxy.connection.MinecraftConnection;
|
import com.velocitypowered.proxy.connection.MinecraftConnection;
|
||||||
import com.velocitypowered.proxy.connection.MinecraftSessionHandler;
|
import com.velocitypowered.proxy.connection.MinecraftSessionHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundStatusPingPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundStatusPingPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundStatusResponsePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundStatusResponsePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.legacy.LegacyDisconnectPacket;
|
import com.velocitypowered.proxy.network.java.packet.legacy.LegacyDisconnectPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.legacy.LegacyPingPacket;
|
import com.velocitypowered.proxy.network.java.packet.legacy.LegacyPingPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundStatusPingPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundStatusPingPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundStatusRequestPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundStatusRequestPacket;
|
||||||
import com.velocitypowered.proxy.server.VelocityRegisteredServer;
|
import com.velocitypowered.proxy.server.VelocityRegisteredServer;
|
||||||
import com.velocitypowered.proxy.util.except.QuietRuntimeException;
|
import com.velocitypowered.proxy.util.except.QuietRuntimeException;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
|
@ -23,7 +23,7 @@ import com.velocitypowered.proxy.connection.backend.BackendConnectionPhase;
|
|||||||
import com.velocitypowered.proxy.connection.backend.BackendConnectionPhases;
|
import com.velocitypowered.proxy.connection.backend.BackendConnectionPhases;
|
||||||
import com.velocitypowered.proxy.connection.backend.VelocityServerConnection;
|
import com.velocitypowered.proxy.connection.backend.VelocityServerConnection;
|
||||||
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,7 +24,7 @@ import com.velocitypowered.proxy.connection.backend.VelocityServerConnection;
|
|||||||
import com.velocitypowered.proxy.connection.client.ClientConnectionPhase;
|
import com.velocitypowered.proxy.connection.client.ClientConnectionPhase;
|
||||||
import com.velocitypowered.proxy.connection.client.ClientPlaySessionHandler;
|
import com.velocitypowered.proxy.connection.client.ClientPlaySessionHandler;
|
||||||
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ import com.google.common.base.Preconditions;
|
|||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import com.velocitypowered.api.util.ModInfo;
|
import com.velocitypowered.api.util.ModInfo;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundPluginMessagePacket;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
package com.velocitypowered.proxy.connection.util;
|
package com.velocitypowered.proxy.connection.util;
|
||||||
|
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.TextComponent;
|
|
||||||
import net.kyori.adventure.text.TranslatableComponent;
|
import net.kyori.adventure.text.TranslatableComponent;
|
||||||
import net.kyori.adventure.text.format.NamedTextColor;
|
import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ package com.velocitypowered.proxy.connection.util;
|
|||||||
import com.velocitypowered.api.proxy.player.ConnectionRequestBuilder;
|
import com.velocitypowered.api.proxy.player.ConnectionRequestBuilder;
|
||||||
import com.velocitypowered.api.proxy.player.ConnectionRequestBuilder.Status;
|
import com.velocitypowered.api.proxy.player.ConnectionRequestBuilder.Status;
|
||||||
import com.velocitypowered.api.proxy.server.RegisteredServer;
|
import com.velocitypowered.api.proxy.server.RegisteredServer;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundDisconnectPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundDisconnectPacket;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
|
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
|
||||||
|
@ -25,12 +25,12 @@ import static com.velocitypowered.proxy.network.HandlerNames.MINECRAFT_ENCODER;
|
|||||||
import static com.velocitypowered.proxy.network.HandlerNames.READ_TIMEOUT;
|
import static com.velocitypowered.proxy.network.HandlerNames.READ_TIMEOUT;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.VelocityServer;
|
import com.velocitypowered.proxy.VelocityServer;
|
||||||
|
import com.velocitypowered.proxy.network.generic.pipeline.AutoReadHolderHandler;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftDecoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftEncoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftVarintFrameDecoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftVarintLengthEncoder;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketDirection;
|
import com.velocitypowered.proxy.network.packet.PacketDirection;
|
||||||
import com.velocitypowered.proxy.network.pipeline.AutoReadHolderHandler;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftDecoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftEncoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftVarintFrameDecoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftVarintLengthEncoder;
|
|
||||||
import io.netty.channel.Channel;
|
import io.netty.channel.Channel;
|
||||||
import io.netty.channel.ChannelInitializer;
|
import io.netty.channel.ChannelInitializer;
|
||||||
import io.netty.handler.timeout.ReadTimeoutHandler;
|
import io.netty.handler.timeout.ReadTimeoutHandler;
|
||||||
|
@ -27,7 +27,7 @@ import com.velocitypowered.api.network.ListenerType;
|
|||||||
import com.velocitypowered.api.network.NetworkEndpoint;
|
import com.velocitypowered.api.network.NetworkEndpoint;
|
||||||
import com.velocitypowered.natives.util.Natives;
|
import com.velocitypowered.natives.util.Natives;
|
||||||
import com.velocitypowered.proxy.VelocityServer;
|
import com.velocitypowered.proxy.VelocityServer;
|
||||||
import com.velocitypowered.proxy.network.pipeline.GS4QueryHandler;
|
import com.velocitypowered.proxy.network.generic.pipeline.GS4QueryHandler;
|
||||||
import com.velocitypowered.proxy.network.resolver.SeparatePoolInetNameResolver;
|
import com.velocitypowered.proxy.network.resolver.SeparatePoolInetNameResolver;
|
||||||
import io.netty.bootstrap.Bootstrap;
|
import io.netty.bootstrap.Bootstrap;
|
||||||
import io.netty.bootstrap.ServerBootstrap;
|
import io.netty.bootstrap.ServerBootstrap;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
package com.velocitypowered.proxy.network;
|
package com.velocitypowered.proxy.network;
|
||||||
|
|
||||||
import com.google.common.base.Strings;
|
import com.google.common.base.Strings;
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftDecoder;
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftDecoder;
|
||||||
import com.velocitypowered.proxy.util.except.QuietDecoderException;
|
import com.velocitypowered.proxy.util.except.QuietDecoderException;
|
||||||
import io.netty.handler.codec.CorruptedFrameException;
|
import io.netty.handler.codec.CorruptedFrameException;
|
||||||
|
|
||||||
|
@ -22,8 +22,8 @@ import static com.velocitypowered.proxy.network.NettyPreconditions.checkFrame;
|
|||||||
|
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.api.proxy.player.java.JavaPlayerIdentity;
|
import com.velocitypowered.api.proxy.player.java.JavaPlayerIdentity;
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftDecoder;
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftDecoder;
|
||||||
import com.velocitypowered.proxy.network.serialization.VelocityLegacyHoverEventSerializer;
|
import com.velocitypowered.proxy.util.adventure.VelocityLegacyHoverEventSerializer;
|
||||||
import com.velocitypowered.proxy.util.except.QuietDecoderException;
|
import com.velocitypowered.proxy.util.except.QuietDecoderException;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.buffer.ByteBufInputStream;
|
import io.netty.buffer.ByteBufInputStream;
|
||||||
|
@ -29,14 +29,14 @@ import static com.velocitypowered.proxy.network.HandlerNames.READ_TIMEOUT;
|
|||||||
import com.velocitypowered.proxy.VelocityServer;
|
import com.velocitypowered.proxy.VelocityServer;
|
||||||
import com.velocitypowered.proxy.connection.MinecraftConnection;
|
import com.velocitypowered.proxy.connection.MinecraftConnection;
|
||||||
import com.velocitypowered.proxy.connection.client.HandshakeSessionHandler;
|
import com.velocitypowered.proxy.connection.client.HandshakeSessionHandler;
|
||||||
|
import com.velocitypowered.proxy.network.generic.pipeline.AutoReadHolderHandler;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.LegacyPingDecoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.LegacyPingEncoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftDecoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftEncoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftVarintFrameDecoder;
|
||||||
|
import com.velocitypowered.proxy.network.java.pipeline.MinecraftVarintLengthEncoder;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketDirection;
|
import com.velocitypowered.proxy.network.packet.PacketDirection;
|
||||||
import com.velocitypowered.proxy.network.pipeline.AutoReadHolderHandler;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.LegacyPingDecoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.LegacyPingEncoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftDecoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftEncoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftVarintFrameDecoder;
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.MinecraftVarintLengthEncoder;
|
|
||||||
import io.netty.channel.Channel;
|
import io.netty.channel.Channel;
|
||||||
import io.netty.channel.ChannelInitializer;
|
import io.netty.channel.ChannelInitializer;
|
||||||
import io.netty.handler.codec.haproxy.HAProxyMessageDecoder;
|
import io.netty.handler.codec.haproxy.HAProxyMessageDecoder;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.generic.pipeline;
|
||||||
|
|
||||||
import io.netty.channel.ChannelDuplexHandler;
|
import io.netty.channel.ChannelDuplexHandler;
|
||||||
import io.netty.channel.ChannelHandlerContext;
|
import io.netty.channel.ChannelHandlerContext;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.generic.pipeline;
|
||||||
|
|
||||||
import static com.velocitypowered.api.event.connection.ProxyQueryEvent.QueryType.BASIC;
|
import static com.velocitypowered.api.event.connection.ProxyQueryEvent.QueryType.BASIC;
|
||||||
import static com.velocitypowered.api.event.connection.ProxyQueryEvent.QueryType.FULL;
|
import static com.velocitypowered.api.event.connection.ProxyQueryEvent.QueryType.FULL;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network;
|
package com.velocitypowered.proxy.network.java;
|
||||||
|
|
||||||
import static com.google.common.base.Preconditions.checkArgument;
|
import static com.google.common.base.Preconditions.checkArgument;
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
@ -26,7 +26,8 @@ import com.velocitypowered.api.proxy.messages.KeyedPluginChannelId;
|
|||||||
import com.velocitypowered.api.proxy.messages.PairedPluginChannelId;
|
import com.velocitypowered.api.proxy.messages.PairedPluginChannelId;
|
||||||
import com.velocitypowered.api.proxy.messages.PluginChannelId;
|
import com.velocitypowered.api.proxy.messages.PluginChannelId;
|
||||||
import com.velocitypowered.api.util.ProxyVersion;
|
import com.velocitypowered.api.util.ProxyVersion;
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
@ -15,11 +15,14 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet;
|
package com.velocitypowered.proxy.network.java.packet;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import java.util.function.LongFunction;
|
import java.util.function.LongFunction;
|
||||||
|
|
||||||
public abstract class AbstractKeepAlivePacket implements Packet {
|
public abstract class AbstractKeepAlivePacket implements Packet {
|
@ -15,21 +15,24 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet;
|
package com.velocitypowered.proxy.network.java.packet;
|
||||||
|
|
||||||
import static com.velocitypowered.proxy.network.PluginMessageUtil.transformLegacyToModernChannel;
|
import static com.velocitypowered.proxy.network.java.PluginMessageUtil.transformLegacyToModernChannel;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
import com.velocitypowered.proxy.network.buffer.TypedDefaultByteBufHolder;
|
import com.velocitypowered.proxy.network.buffer.TypedDefaultByteBufHolder;
|
||||||
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
|
||||||
|
|
||||||
public abstract class AbstractPluginMessagePacket<S extends AbstractPluginMessagePacket<S>> extends TypedDefaultByteBufHolder<S> implements Packet {
|
public abstract class AbstractPluginMessagePacket<S extends AbstractPluginMessagePacket<S>> extends TypedDefaultByteBufHolder<S> implements
|
||||||
|
Packet {
|
||||||
protected static <P extends AbstractPluginMessagePacket<P>> PacketReader<P> decoder(final Factory<P> factory) {
|
protected static <P extends AbstractPluginMessagePacket<P>> PacketReader<P> decoder(final Factory<P> factory) {
|
||||||
return (buf, version) -> {
|
return (buf, version) -> {
|
||||||
String channel = ProtocolUtils.readString(buf);
|
String channel = ProtocolUtils.readString(buf);
|
@ -15,10 +15,13 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet;
|
package com.velocitypowered.proxy.network.java.packet;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import java.util.function.LongFunction;
|
import java.util.function.LongFunction;
|
||||||
|
|
@ -15,43 +15,43 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet;
|
package com.velocitypowered.proxy.network.java.packet;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundAvailableCommandsPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundAvailableCommandsPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundBossBarPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundBossBarPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundChatPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundChatPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundDisconnectPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundDisconnectPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundEncryptionRequestPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundEncryptionRequestPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundHeaderAndFooterPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundHeaderAndFooterPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundJoinGamePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundJoinGamePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundKeepAlivePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundKeepAlivePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundLoginPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundLoginPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundPlayerListItemPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundPlayerListItemPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundResourcePackRequestPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundResourcePackRequestPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundRespawnPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundRespawnPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundServerLoginSuccessPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundServerLoginSuccessPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundSetCompressionPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundSetCompressionPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundStatusPingPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundStatusPingPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundStatusResponsePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundStatusResponsePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundTabCompleteResponsePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundTabCompleteResponsePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundTitlePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundTitlePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.legacy.LegacyHandshakePacket;
|
import com.velocitypowered.proxy.network.java.packet.legacy.LegacyHandshakePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.legacy.LegacyPingPacket;
|
import com.velocitypowered.proxy.network.java.packet.legacy.LegacyPingPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundChatPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundChatPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundClientSettingsPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundClientSettingsPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundEncryptionResponsePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundEncryptionResponsePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundHandshakePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundHandshakePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundKeepAlivePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundKeepAlivePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundLoginPluginResponsePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundLoginPluginResponsePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundResourcePackResponsePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundResourcePackResponsePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundServerLoginPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundServerLoginPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundStatusPingPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundStatusPingPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundStatusRequestPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundStatusRequestPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundTabCompleteRequestPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundTabCompleteRequestPacket;
|
||||||
|
|
||||||
public interface PacketHandler {
|
public interface JavaPacketHandler {
|
||||||
/*
|
/*
|
||||||
* Clientbound
|
* Clientbound
|
||||||
*/
|
*/
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
@ -36,11 +36,11 @@ import com.mojang.brigadier.tree.RootCommandNode;
|
|||||||
import com.velocitypowered.api.command.CommandSource;
|
import com.velocitypowered.api.command.CommandSource;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
|
import com.velocitypowered.proxy.network.java.serialization.brigadier.ArgumentPropertyRegistry;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import com.velocitypowered.proxy.network.serialization.brigadier.ArgumentPropertyRegistry;
|
|
||||||
import com.velocitypowered.proxy.util.collect.IdentityHashStrategy;
|
import com.velocitypowered.proxy.util.collect.IdentityHashStrategy;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import it.unimi.dsi.fastutil.objects.Object2IntLinkedOpenCustomHashMap;
|
import it.unimi.dsi.fastutil.objects.Object2IntLinkedOpenCustomHashMap;
|
||||||
@ -186,7 +186,7 @@ public class ClientboundAvailableCommandsPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,13 +15,13 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -181,7 +181,7 @@ public class ClientboundBossBarPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,19 +15,16 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
|
||||||
import java.util.UUID;
|
|
||||||
import net.kyori.adventure.identity.Identity;
|
import net.kyori.adventure.identity.Identity;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
|
||||||
|
|
||||||
public class ClientboundChatPacket implements Packet {
|
public class ClientboundChatPacket implements Packet {
|
||||||
public static final PacketReader<ClientboundChatPacket> DECODER = PacketReader.unsupported();
|
public static final PacketReader<ClientboundChatPacket> DECODER = PacketReader.unsupported();
|
||||||
@ -56,7 +53,7 @@ public class ClientboundChatPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,14 +15,14 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
@ -48,7 +48,7 @@ public class ClientboundDisconnectPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,15 +15,15 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import static com.velocitypowered.proxy.connection.VelocityConstants.EMPTY_BYTE_ARRAY;
|
import static com.velocitypowered.proxy.connection.VelocityConstants.EMPTY_BYTE_ARRAY;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -79,7 +79,7 @@ public class ClientboundEncryptionRequestPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,14 +15,14 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import static com.velocitypowered.proxy.network.ProtocolUtils.writeString;
|
import static com.velocitypowered.proxy.network.ProtocolUtils.writeString;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ public class ClientboundHeaderAndFooterPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
@ -23,8 +23,8 @@ import com.velocitypowered.proxy.connection.registry.DimensionData;
|
|||||||
import com.velocitypowered.proxy.connection.registry.DimensionInfo;
|
import com.velocitypowered.proxy.connection.registry.DimensionInfo;
|
||||||
import com.velocitypowered.proxy.connection.registry.DimensionRegistry;
|
import com.velocitypowered.proxy.connection.registry.DimensionRegistry;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -331,7 +331,7 @@ public class ClientboundJoinGamePacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,11 +15,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractKeepAlivePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractKeepAlivePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ public class ClientboundKeepAlivePacket extends AbstractKeepAlivePacket implemen
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,20 +15,18 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.buffer.DefaultByteBufHolder;
|
import io.netty.buffer.DefaultByteBufHolder;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
|
||||||
|
|
||||||
public class ClientboundLoginPluginMessagePacket extends DefaultByteBufHolder implements Packet {
|
public class ClientboundLoginPluginMessagePacket extends DefaultByteBufHolder implements Packet {
|
||||||
public static final PacketReader<ClientboundLoginPluginMessagePacket> DECODER = (buf, version) -> {
|
public static final PacketReader<ClientboundLoginPluginMessagePacket> DECODER = (buf, version) -> {
|
||||||
@ -58,7 +56,7 @@ public class ClientboundLoginPluginMessagePacket extends DefaultByteBufHolder im
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.google.common.base.VerifyException;
|
import com.google.common.base.VerifyException;
|
||||||
@ -24,8 +24,8 @@ import com.velocitypowered.api.network.ProtocolVersion;
|
|||||||
import com.velocitypowered.api.proxy.player.TabListEntry;
|
import com.velocitypowered.api.proxy.player.TabListEntry;
|
||||||
import com.velocitypowered.api.proxy.player.java.JavaPlayerIdentity;
|
import com.velocitypowered.api.proxy.player.java.JavaPlayerIdentity;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -168,7 +168,7 @@ public class ClientboundPlayerListItemPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,11 +15,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -34,7 +34,7 @@ public class ClientboundPluginMessagePacket extends AbstractPluginMessagePacket<
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,12 +15,12 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@ -45,7 +45,7 @@ public class ClientboundResourcePackRequestPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,15 +15,15 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.connection.registry.DimensionData;
|
import com.velocitypowered.proxy.connection.registry.DimensionData;
|
||||||
import com.velocitypowered.proxy.connection.registry.DimensionInfo;
|
import com.velocitypowered.proxy.connection.registry.DimensionInfo;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -188,7 +188,7 @@ public class ClientboundRespawnPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,14 +15,14 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.api.util.UuidUtils;
|
import com.velocitypowered.api.util.UuidUtils;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@ -61,7 +61,7 @@ public class ClientboundServerLoginSuccessPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,12 +15,12 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ public class ClientboundSetCompressionPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,11 +15,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractStatusPingPacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractStatusPingPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ public class ClientboundStatusPingPacket extends AbstractStatusPingPacket implem
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,17 +15,14 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
|
||||||
|
|
||||||
public class ClientboundStatusResponsePacket implements Packet {
|
public class ClientboundStatusResponsePacket implements Packet {
|
||||||
public static final PacketReader<ClientboundStatusResponsePacket> DECODER = (buf, version) -> {
|
public static final PacketReader<ClientboundStatusResponsePacket> DECODER = (buf, version) -> {
|
||||||
@ -42,7 +39,7 @@ public class ClientboundStatusResponsePacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,13 +15,13 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -112,7 +112,7 @@ public class ClientboundTabCompleteResponsePacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,14 +15,14 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.clientbound;
|
package com.velocitypowered.proxy.network.java.packet.clientbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.google.common.primitives.Ints;
|
import com.google.common.primitives.Ints;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import com.velocitypowered.proxy.util.DurationUtils;
|
import com.velocitypowered.proxy.util.DurationUtils;
|
||||||
@ -158,7 +158,7 @@ public class ClientboundTitlePacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.legacy;
|
package com.velocitypowered.proxy.network.java.packet.legacy;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import com.velocitypowered.api.proxy.server.ServerPing;
|
import com.velocitypowered.api.proxy.server.ServerPing;
|
@ -15,11 +15,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.legacy;
|
package com.velocitypowered.proxy.network.java.packet.legacy;
|
||||||
|
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
|
|
||||||
public class LegacyHandshakePacket implements LegacyPacket, Packet {
|
public class LegacyHandshakePacket implements LegacyPacket, Packet {
|
||||||
@ -30,7 +30,7 @@ public class LegacyHandshakePacket implements LegacyPacket, Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.legacy;
|
package com.velocitypowered.proxy.network.java.packet.legacy;
|
||||||
|
|
||||||
public enum LegacyMinecraftPingVersion {
|
public enum LegacyMinecraftPingVersion {
|
||||||
MINECRAFT_1_3,
|
MINECRAFT_1_3,
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.legacy;
|
package com.velocitypowered.proxy.network.java.packet.legacy;
|
||||||
|
|
||||||
public interface LegacyPacket {
|
public interface LegacyPacket {
|
||||||
}
|
}
|
@ -15,11 +15,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.legacy;
|
package com.velocitypowered.proxy.network.java.packet.legacy;
|
||||||
|
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||||
@ -45,7 +45,7 @@ public class LegacyPingPacket implements LegacyPacket, Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,12 +15,12 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ public class ServerboundChatPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,13 +15,13 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -92,7 +92,7 @@ public class ServerboundClientSettingsPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,13 +15,13 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -78,7 +78,7 @@ public class ServerboundEncryptionResponsePacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,13 +15,13 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ public class ServerboundHandshakePacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,11 +15,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractKeepAlivePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractKeepAlivePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ public class ServerboundKeepAlivePacket extends AbstractKeepAlivePacket implemen
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,13 +15,12 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -59,7 +58,7 @@ public class ServerboundLoginPluginResponsePacket extends DefaultByteBufHolder i
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,11 +15,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractPluginMessagePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -34,7 +34,7 @@ public class ServerboundPluginMessagePacket extends AbstractPluginMessagePacket<
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,14 +15,14 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.event.player.PlayerResourcePackStatusEvent.Status;
|
import com.velocitypowered.api.event.player.PlayerResourcePackStatusEvent.Status;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -58,7 +58,7 @@ public class ServerboundResourcePackResponsePacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,13 +15,13 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import com.velocitypowered.proxy.util.except.QuietDecoderException;
|
import com.velocitypowered.proxy.util.except.QuietDecoderException;
|
||||||
@ -59,7 +59,7 @@ public class ServerboundServerLoginPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,11 +15,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.network.packet.AbstractStatusPingPacket;
|
import com.velocitypowered.proxy.network.java.packet.AbstractStatusPingPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ public class ServerboundStatusPingPacket extends AbstractStatusPingPacket implem
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,10 +15,10 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ public class ServerboundStatusRequestPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.packet.serverbound;
|
package com.velocitypowered.proxy.network.java.packet.serverbound;
|
||||||
|
|
||||||
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_13;
|
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_13;
|
||||||
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_8;
|
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_8;
|
||||||
@ -24,8 +24,8 @@ import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_9;
|
|||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.JavaPacketHandler;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketHandler;
|
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -129,7 +129,7 @@ public class ServerboundTabCompleteRequestPacket implements Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(PacketHandler handler) {
|
public boolean handle(JavaPacketHandler handler) {
|
||||||
return handler.handle(this);
|
return handler.handle(this);
|
||||||
}
|
}
|
||||||
|
|
@ -15,13 +15,13 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.java.pipeline;
|
||||||
|
|
||||||
import static com.velocitypowered.proxy.network.NettyPreconditions.checkFrame;
|
import static com.velocitypowered.proxy.network.NettyPreconditions.checkFrame;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.network.packet.legacy.LegacyHandshakePacket;
|
import com.velocitypowered.proxy.network.java.packet.legacy.LegacyHandshakePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.legacy.LegacyMinecraftPingVersion;
|
import com.velocitypowered.proxy.network.java.packet.legacy.LegacyMinecraftPingVersion;
|
||||||
import com.velocitypowered.proxy.network.packet.legacy.LegacyPingPacket;
|
import com.velocitypowered.proxy.network.java.packet.legacy.LegacyPingPacket;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.channel.ChannelHandlerContext;
|
import io.netty.channel.ChannelHandlerContext;
|
||||||
import io.netty.handler.codec.ByteToMessageDecoder;
|
import io.netty.handler.codec.ByteToMessageDecoder;
|
@ -15,9 +15,9 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.java.pipeline;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.network.packet.legacy.LegacyDisconnectPacket;
|
import com.velocitypowered.proxy.network.java.packet.legacy.LegacyDisconnectPacket;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.channel.ChannelHandler;
|
import io.netty.channel.ChannelHandler;
|
||||||
import io.netty.channel.ChannelHandlerContext;
|
import io.netty.channel.ChannelHandlerContext;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.java.pipeline;
|
||||||
|
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.velocitypowered.natives.encryption.VelocityCipher;
|
import com.velocitypowered.natives.encryption.VelocityCipher;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.java.pipeline;
|
||||||
|
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.velocitypowered.natives.encryption.VelocityCipher;
|
import com.velocitypowered.natives.encryption.VelocityCipher;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.java.pipeline;
|
||||||
|
|
||||||
import static com.velocitypowered.natives.util.MoreByteBufUtils.ensureCompatible;
|
import static com.velocitypowered.natives.util.MoreByteBufUtils.ensureCompatible;
|
||||||
import static com.velocitypowered.natives.util.MoreByteBufUtils.preferredBuffer;
|
import static com.velocitypowered.natives.util.MoreByteBufUtils.preferredBuffer;
|
@ -15,9 +15,9 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.java.pipeline;
|
||||||
|
|
||||||
import static com.velocitypowered.proxy.network.pipeline.MinecraftVarintLengthEncoder.IS_JAVA_CIPHER;
|
import static com.velocitypowered.proxy.network.java.pipeline.MinecraftVarintLengthEncoder.IS_JAVA_CIPHER;
|
||||||
|
|
||||||
import com.velocitypowered.natives.compression.VelocityCompressor;
|
import com.velocitypowered.natives.compression.VelocityCompressor;
|
||||||
import com.velocitypowered.natives.util.MoreByteBufUtils;
|
import com.velocitypowered.natives.util.MoreByteBufUtils;
|
@ -15,17 +15,17 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.java.pipeline;
|
||||||
|
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.states.ProtocolStates;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketDirection;
|
import com.velocitypowered.proxy.network.packet.PacketDirection;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.registry.packet.PacketRegistryMap;
|
import com.velocitypowered.proxy.network.registry.packet.PacketRegistryMap;
|
||||||
import com.velocitypowered.proxy.network.registry.protocol.ProtocolRegistry;
|
import com.velocitypowered.proxy.network.registry.protocol.ProtocolRegistry;
|
||||||
import com.velocitypowered.proxy.network.registry.state.ProtocolStates;
|
|
||||||
import com.velocitypowered.proxy.util.except.QuietRuntimeException;
|
import com.velocitypowered.proxy.util.except.QuietRuntimeException;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.channel.ChannelHandlerContext;
|
import io.netty.channel.ChannelHandlerContext;
|
@ -15,15 +15,15 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.java.pipeline;
|
||||||
|
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
|
import com.velocitypowered.proxy.network.java.states.ProtocolStates;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketDirection;
|
import com.velocitypowered.proxy.network.packet.PacketDirection;
|
||||||
import com.velocitypowered.proxy.network.registry.packet.PacketRegistryMap;
|
import com.velocitypowered.proxy.network.registry.packet.PacketRegistryMap;
|
||||||
import com.velocitypowered.proxy.network.registry.protocol.ProtocolRegistry;
|
import com.velocitypowered.proxy.network.registry.protocol.ProtocolRegistry;
|
||||||
import com.velocitypowered.proxy.network.registry.state.ProtocolStates;
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.channel.ChannelHandlerContext;
|
import io.netty.channel.ChannelHandlerContext;
|
||||||
import io.netty.handler.codec.MessageToByteEncoder;
|
import io.netty.handler.codec.MessageToByteEncoder;
|
@ -15,9 +15,9 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.java.pipeline;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.network.pipeline.VarintByteDecoder.DecodeResult;
|
import com.velocitypowered.proxy.network.java.pipeline.VarintByteDecoder.DecodeResult;
|
||||||
import com.velocitypowered.proxy.util.except.QuietDecoderException;
|
import com.velocitypowered.proxy.util.except.QuietDecoderException;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.channel.ChannelHandlerContext;
|
import io.netty.channel.ChannelHandlerContext;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.java.pipeline;
|
||||||
|
|
||||||
import com.velocitypowered.natives.encryption.JavaVelocityCipher;
|
import com.velocitypowered.natives.encryption.JavaVelocityCipher;
|
||||||
import com.velocitypowered.natives.util.Natives;
|
import com.velocitypowered.natives.util.Natives;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.pipeline;
|
package com.velocitypowered.proxy.network.java.pipeline;
|
||||||
|
|
||||||
import io.netty.util.ByteProcessor;
|
import io.netty.util.ByteProcessor;
|
||||||
|
|
@ -15,15 +15,15 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.DoubleArgumentPropertySerializer.DOUBLE;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.DoubleArgumentPropertySerializer.DOUBLE;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.EmptyArgumentPropertySerializer.EMPTY;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.EmptyArgumentPropertySerializer.EMPTY;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.FloatArgumentPropertySerializer.FLOAT;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.FloatArgumentPropertySerializer.FLOAT;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.IntegerArgumentPropertySerializer.INTEGER;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.IntegerArgumentPropertySerializer.INTEGER;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.LongArgumentPropertySerializer.LONG;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.LongArgumentPropertySerializer.LONG;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.ModArgumentPropertySerializer.MOD;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.ModArgumentPropertySerializer.MOD;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.StringArgumentPropertySerializer.STRING;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.StringArgumentPropertySerializer.STRING;
|
||||||
|
|
||||||
import com.mojang.brigadier.arguments.ArgumentType;
|
import com.mojang.brigadier.arguments.ArgumentType;
|
||||||
import com.mojang.brigadier.arguments.BoolArgumentType;
|
import com.mojang.brigadier.arguments.BoolArgumentType;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
import org.checkerframework.checker.nullness.qual.Nullable;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
|
|
@ -15,11 +15,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MAXIMUM;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MAXIMUM;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MINIMUM;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MINIMUM;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.IntegerArgumentPropertySerializer.getFlags;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.IntegerArgumentPropertySerializer.getFlags;
|
||||||
|
|
||||||
import com.mojang.brigadier.arguments.DoubleArgumentType;
|
import com.mojang.brigadier.arguments.DoubleArgumentType;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
import org.checkerframework.checker.nullness.qual.Nullable;
|
@ -15,11 +15,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MAXIMUM;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MAXIMUM;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MINIMUM;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MINIMUM;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.IntegerArgumentPropertySerializer.getFlags;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.IntegerArgumentPropertySerializer.getFlags;
|
||||||
|
|
||||||
import com.mojang.brigadier.arguments.FloatArgumentType;
|
import com.mojang.brigadier.arguments.FloatArgumentType;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import com.mojang.brigadier.arguments.ArgumentType;
|
import com.mojang.brigadier.arguments.ArgumentType;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import com.mojang.brigadier.arguments.IntegerArgumentType;
|
import com.mojang.brigadier.arguments.IntegerArgumentType;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
@ -15,11 +15,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MAXIMUM;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MAXIMUM;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MINIMUM;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.IntegerArgumentPropertySerializer.HAS_MINIMUM;
|
||||||
import static com.velocitypowered.proxy.network.serialization.brigadier.IntegerArgumentPropertySerializer.getFlags;
|
import static com.velocitypowered.proxy.network.java.serialization.brigadier.IntegerArgumentPropertySerializer.getFlags;
|
||||||
|
|
||||||
import com.mojang.brigadier.arguments.LongArgumentType;
|
import com.mojang.brigadier.arguments.LongArgumentType;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import com.mojang.brigadier.StringReader;
|
import com.mojang.brigadier.StringReader;
|
||||||
import com.mojang.brigadier.arguments.ArgumentType;
|
import com.mojang.brigadier.arguments.ArgumentType;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import com.mojang.brigadier.StringReader;
|
import com.mojang.brigadier.StringReader;
|
||||||
import com.mojang.brigadier.arguments.ArgumentType;
|
import com.mojang.brigadier.arguments.ArgumentType;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization.brigadier;
|
package com.velocitypowered.proxy.network.java.serialization.brigadier;
|
||||||
|
|
||||||
import com.mojang.brigadier.arguments.StringArgumentType;
|
import com.mojang.brigadier.arguments.StringArgumentType;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization;
|
package com.velocitypowered.proxy.network.java.serialization.json;
|
||||||
|
|
||||||
import com.google.gson.JsonDeserializationContext;
|
import com.google.gson.JsonDeserializationContext;
|
||||||
import com.google.gson.JsonDeserializer;
|
import com.google.gson.JsonDeserializer;
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.serialization;
|
package com.velocitypowered.proxy.network.java.serialization.json;
|
||||||
|
|
||||||
import com.google.gson.JsonDeserializationContext;
|
import com.google.gson.JsonDeserializationContext;
|
||||||
import com.google.gson.JsonDeserializer;
|
import com.google.gson.JsonDeserializer;
|
@ -15,17 +15,16 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.registry.state;
|
package com.velocitypowered.proxy.network.java.states;
|
||||||
|
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundDisconnectPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundDisconnectPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundEncryptionRequestPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundEncryptionRequestPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundLoginPluginMessagePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundLoginPluginMessagePacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundServerLoginSuccessPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundServerLoginSuccessPacket;
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundSetCompressionPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundSetCompressionPacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundEncryptionResponsePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundEncryptionResponsePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundLoginPluginResponsePacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundLoginPluginResponsePacket;
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundServerLoginPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundServerLoginPacket;
|
|
||||||
import com.velocitypowered.proxy.network.registry.packet.PacketRegistryBuilder;
|
import com.velocitypowered.proxy.network.registry.packet.PacketRegistryBuilder;
|
||||||
import com.velocitypowered.proxy.network.registry.packet.PacketRegistryMap;
|
import com.velocitypowered.proxy.network.registry.packet.PacketRegistryMap;
|
||||||
|
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.velocitypowered.proxy.network.registry.state;
|
package com.velocitypowered.proxy.network.java.states;
|
||||||
|
|
||||||
import static com.google.common.collect.Iterables.getLast;
|
import static com.google.common.collect.Iterables.getLast;
|
||||||
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_12;
|
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_12;
|
||||||
@ -34,29 +34,29 @@ import static com.velocitypowered.api.network.ProtocolVersion.SUPPORTED_VERSIONS
|
|||||||
|
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
import com.velocitypowered.api.network.ProtocolVersion;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundAvailableCommandsPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundBossBarPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundChatPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundDisconnectPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundHeaderAndFooterPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundJoinGamePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundKeepAlivePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundPlayerListItemPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundPluginMessagePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundResourcePackRequestPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundRespawnPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundTabCompleteResponsePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.clientbound.ClientboundTitlePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundChatPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundClientSettingsPacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundKeepAlivePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundPluginMessagePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundResourcePackResponsePacket;
|
||||||
|
import com.velocitypowered.proxy.network.java.packet.serverbound.ServerboundTabCompleteRequestPacket;
|
||||||
import com.velocitypowered.proxy.network.packet.Packet;
|
import com.velocitypowered.proxy.network.packet.Packet;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketDirection;
|
import com.velocitypowered.proxy.network.packet.PacketDirection;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketReader;
|
import com.velocitypowered.proxy.network.packet.PacketReader;
|
||||||
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
import com.velocitypowered.proxy.network.packet.PacketWriter;
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundAvailableCommandsPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundBossBarPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundChatPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundDisconnectPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundHeaderAndFooterPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundJoinGamePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundKeepAlivePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundPlayerListItemPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundPluginMessagePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundResourcePackRequestPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundRespawnPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundTabCompleteResponsePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.clientbound.ClientboundTitlePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundChatPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundClientSettingsPacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundKeepAlivePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundPluginMessagePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundResourcePackResponsePacket;
|
|
||||||
import com.velocitypowered.proxy.network.packet.serverbound.ServerboundTabCompleteRequestPacket;
|
|
||||||
import com.velocitypowered.proxy.network.registry.packet.PacketRegistryMap;
|
import com.velocitypowered.proxy.network.registry.packet.PacketRegistryMap;
|
||||||
import com.velocitypowered.proxy.network.registry.protocol.ProtocolRegistry;
|
import com.velocitypowered.proxy.network.registry.protocol.ProtocolRegistry;
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
@ -68,7 +68,6 @@ import java.util.EnumMap;
|
|||||||
import java.util.EnumSet;
|
import java.util.EnumSet;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||||
|
|
Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden Mehr anzeigen
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren