move classes

This commit is contained in:
Sen 2025-06-05 11:24:38 +02:00
parent 721e668d51
commit a966c61b0a
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
138 changed files with 311 additions and 318 deletions

View file

@ -54,19 +54,19 @@ import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListenableFutureTask;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import proxy.network.PacketDirection;
import proxy.network.PacketDecoder;
import proxy.network.PacketSplitter;
import proxy.network.PacketEncoder;
import proxy.network.PacketPrepender;
import proxy.network.Handler.ThreadQuickExitException;
import proxy.network.HandshakeHandler;
import proxy.network.ProxyHandler;
import proxy.network.Direction;
import proxy.network.Decoder;
import proxy.network.Splitter;
import proxy.network.Encoder;
import proxy.network.Prepender;
import proxy.command.*;
import proxy.handler.HandshakeHandler;
import proxy.handler.ProxyHandler;
import proxy.handler.Handler.ThreadQuickExitException;
import proxy.network.Connection;
import proxy.packet.S40PacketDisconnect;
import proxy.packet.ServerInfo;
import proxy.util.Formatter;
import proxy.util.ServerInfo;
import proxy.util.User;
import proxy.util.LazyLoader;
import proxy.util.Log;
@ -95,7 +95,7 @@ public class Proxy {
private final Thread serverThread;
private int compression = -1;
private boolean epoll = false;
private boolean epoll = true;
private boolean register = true;
private boolean checkCase = true;
private boolean kickOnConnect = true;
@ -105,6 +105,8 @@ public class Proxy {
private int proxyPort = 25564;
private int minPassLength = 8;
private int maxAttempts = 5;
private int maxPlayers = 64;
private ServerInfo status = getStatus(new File("icon.png"), Formatter.AQUA + "Server\n" + Formatter.GREEN + "Test!!", 90, 10, "Test1",
"Test2 ...", "Test #3 !!");
@ -251,16 +253,16 @@ public class Proxy {
}
p_initChannel_1_.pipeline().addLast((String)"timeout", (ChannelHandler)(new ReadTimeoutHandler(30)))
.addLast((String)"splitter", (ChannelHandler)(new PacketSplitter()))
.addLast((String)"decoder", (ChannelHandler)(new PacketDecoder(PacketDirection.SERVER)))
.addLast((String)"prepender", (ChannelHandler)(new PacketPrepender()))
.addLast((String)"encoder", (ChannelHandler)(new PacketEncoder(PacketDirection.CLIENT)));
Connection networkmanager = new Connection(PacketDirection.SERVER);
.addLast((String)"splitter", (ChannelHandler)(new Splitter()))
.addLast((String)"decoder", (ChannelHandler)(new Decoder(Direction.SERVER)))
.addLast((String)"prepender", (ChannelHandler)(new Prepender()))
.addLast((String)"encoder", (ChannelHandler)(new Encoder(Direction.CLIENT)));
Connection networkmanager = new Connection(Direction.SERVER);
Proxy.this.networkManagers.add(networkmanager);
p_initChannel_1_.pipeline().addLast((String)"packet_handler", (ChannelHandler)networkmanager);
networkmanager.setNetHandler(new HandshakeHandler(Proxy.this, networkmanager));
}
}).group((EventLoopGroup)lazyloadbase.getValue()).localAddress(address, port)).bind().syncUninterruptibly());
}).group(lazyloadbase.getValue()).localAddress(address, port)).bind().syncUninterruptibly());
}
}
@ -375,6 +377,10 @@ public class Proxy {
public int getMaximumPasswordAttempts() {
return this.maxAttempts;
}
public int getMaximumPlayers() {
return this.maxPlayers;
}
public User getUser(String user) {
return this.users.get(user.toLowerCase(Locale.US));

View file

@ -1,7 +1,7 @@
package proxy.command;
import proxy.Proxy;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.util.Formatter;
import proxy.util.Log;

View file

@ -3,7 +3,7 @@ package proxy.command;
import com.google.common.collect.Collections2;
import proxy.Proxy;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.util.Formatter;
import proxy.util.User;

View file

@ -3,7 +3,7 @@ package proxy.command;
import com.google.common.collect.Collections2;
import proxy.Proxy;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.util.User;
public class CommandDelete extends Command {

View file

@ -3,7 +3,7 @@ package proxy.command;
import com.google.common.collect.Lists;
import proxy.Proxy;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.util.Formatter;
public class CommandExit extends Command {

View file

@ -3,7 +3,7 @@ package proxy.command;
import java.util.Locale;
import proxy.Proxy;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.util.Formatter;
public class CommandHelp extends Command {

View file

@ -1,7 +1,7 @@
package proxy.command;
import proxy.Proxy;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.util.Formatter;
import proxy.util.User;

View file

@ -1,7 +1,7 @@
package proxy.command;
import proxy.Proxy;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.util.Formatter;
import proxy.util.User;

View file

@ -1,6 +1,8 @@
package proxy.network;
package proxy.handler;
import proxy.Proxy;
import proxy.network.Connection;
import proxy.network.Packet;
public interface Handler {
public static final class ThreadQuickExitException extends RuntimeException {

View file

@ -1,6 +1,8 @@
package proxy.network;
package proxy.handler;
import proxy.Proxy;
import proxy.network.Connection;
import proxy.network.Protocol;
import proxy.packet.H00PacketHandshake;
import proxy.packet.R00PacketDisconnect;

View file

@ -1,8 +1,9 @@
package proxy.network;
package proxy.handler;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import proxy.Proxy;
import proxy.network.Connection;
import proxy.packet.L00PacketLoginStart;
import proxy.packet.L01PacketEncryptionResponse;
import proxy.packet.R00PacketDisconnect;

View file

@ -1,4 +1,4 @@
package proxy.network;
package proxy.handler;
import io.netty.util.concurrent.Future;
import io.netty.util.concurrent.GenericFutureListener;
@ -16,12 +16,14 @@ import com.google.common.collect.Lists;
import proxy.Proxy;
import proxy.command.Command;
import proxy.network.Connection;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.network.Protocol;
import proxy.packet.*;
import proxy.util.Formatter;
import proxy.util.User;
import proxy.util.Stack;
import proxy.util.Log;
import proxy.util.Nbt;
public class ProxyHandler extends User implements Handler {
public class ProxyLoginHandler implements Handler {

View file

@ -1,6 +1,7 @@
package proxy.network;
package proxy.handler;
import proxy.Proxy;
import proxy.network.Connection;
import proxy.packet.I00PacketServerInfo;
import proxy.packet.I01PacketPong;
import proxy.packet.Q00PacketServerQuery;

View file

@ -5,13 +5,13 @@ import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import java.util.zip.Deflater;
public class CompressingEncoder extends MessageToByteEncoder<ByteBuf>
public class Compressor extends MessageToByteEncoder<ByteBuf>
{
private final byte[] buffer = new byte[8192];
private final Deflater deflater;
private int treshold;
public CompressingEncoder(int treshold)
public Compressor(int treshold)
{
this.treshold = treshold;
this.deflater = new Deflater();

View file

@ -29,7 +29,8 @@ import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import proxy.network.Handler.ThreadQuickExitException;
import proxy.handler.Handler;
import proxy.handler.Handler.ThreadQuickExitException;
import proxy.util.LazyLoader;
import proxy.util.Log;
@ -50,7 +51,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet>
return new EpollEventLoopGroup(0, (new ThreadFactoryBuilder()).setNameFormat("Netty Epoll Client IO #%d").setDaemon(true).build());
}
};
private final PacketDirection direction;
private final Direction direction;
private final Queue<Connection.InboundHandlerTuplePacketListener> outboundPacketsQueue = new ConcurrentLinkedQueue<Connection.InboundHandlerTuplePacketListener>();
private final ReentrantReadWriteLock readWriteLock = new ReentrantReadWriteLock();
@ -60,7 +61,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet>
private String exitMessage;
private boolean disconnected;
public Connection(PacketDirection direction)
public Connection(Direction direction)
{
this.direction = direction;
}
@ -299,7 +300,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet>
*/
public static Connection createNetworkManagerAndConnect(InetAddress address, int serverPort, boolean useNativeTransport)
{
final Connection networkmanager = new Connection(PacketDirection.CLIENT);
final Connection networkmanager = new Connection(Direction.CLIENT);
Class <? extends SocketChannel > oclass;
LazyLoader <? extends EventLoopGroup > lazyloadbase;
@ -314,7 +315,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet>
lazyloadbase = CLIENT_NIO_EVENTLOOP;
}
((Bootstrap)((Bootstrap)((Bootstrap)(new Bootstrap()).group((EventLoopGroup)lazyloadbase.getValue())).handler(new ChannelInitializer<Channel>()
((Bootstrap)((Bootstrap)((Bootstrap)(new Bootstrap()).group(lazyloadbase.getValue())).handler(new ChannelInitializer<Channel>()
{
protected void initChannel(Channel p_initChannel_1_) throws Exception
{
@ -327,7 +328,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet>
;
}
p_initChannel_1_.pipeline().addLast((String)"timeout", (ChannelHandler)(new ReadTimeoutHandler(30))).addLast((String)"splitter", (ChannelHandler)(new PacketSplitter())).addLast((String)"decoder", (ChannelHandler)(new PacketDecoder(PacketDirection.CLIENT))).addLast((String)"prepender", (ChannelHandler)(new PacketPrepender())).addLast((String)"encoder", (ChannelHandler)(new PacketEncoder(PacketDirection.SERVER))).addLast((String)"packet_handler", (ChannelHandler)networkmanager);
p_initChannel_1_.pipeline().addLast((String)"timeout", (ChannelHandler)(new ReadTimeoutHandler(30))).addLast((String)"splitter", (ChannelHandler)(new Splitter())).addLast((String)"decoder", (ChannelHandler)(new Decoder(Direction.CLIENT))).addLast((String)"prepender", (ChannelHandler)(new Prepender())).addLast((String)"encoder", (ChannelHandler)(new Encoder(Direction.SERVER))).addLast((String)"packet_handler", (ChannelHandler)networkmanager);
}
})).channel(oclass)).connect(address, serverPort).syncUninterruptibly();
return networkmanager;
@ -371,32 +372,32 @@ public class Connection extends SimpleChannelInboundHandler<Packet>
{
if (treshold >= 0)
{
if (this.channel.pipeline().get("decompress") instanceof CompressingDecoder)
if (this.channel.pipeline().get("decompress") instanceof Decompressor)
{
((CompressingDecoder)this.channel.pipeline().get("decompress")).setCompressionTreshold(treshold);
((Decompressor)this.channel.pipeline().get("decompress")).setCompressionTreshold(treshold);
}
else
{
this.channel.pipeline().addBefore("decoder", "decompress", new CompressingDecoder(treshold));
this.channel.pipeline().addBefore("decoder", "decompress", new Decompressor(treshold));
}
if (this.channel.pipeline().get("compress") instanceof CompressingEncoder)
if (this.channel.pipeline().get("compress") instanceof Compressor)
{
((CompressingEncoder)this.channel.pipeline().get("decompress")).setCompressionTreshold(treshold);
((Compressor)this.channel.pipeline().get("decompress")).setCompressionTreshold(treshold);
}
else
{
this.channel.pipeline().addBefore("encoder", "compress", new CompressingEncoder(treshold));
this.channel.pipeline().addBefore("encoder", "compress", new Compressor(treshold));
}
}
else
{
if (this.channel.pipeline().get("decompress") instanceof CompressingDecoder)
if (this.channel.pipeline().get("decompress") instanceof Decompressor)
{
this.channel.pipeline().remove("decompress");
}
if (this.channel.pipeline().get("compress") instanceof CompressingEncoder)
if (this.channel.pipeline().get("compress") instanceof Compressor)
{
this.channel.pipeline().remove("compress");
}

View file

@ -6,11 +6,11 @@ import io.netty.handler.codec.ByteToMessageDecoder;
import java.io.IOException;
import java.util.List;
public class PacketDecoder extends ByteToMessageDecoder
public class Decoder extends ByteToMessageDecoder
{
private final PacketDirection direction;
private final Direction direction;
public PacketDecoder(PacketDirection direction)
public Decoder(Direction direction)
{
this.direction = direction;
}

View file

@ -9,12 +9,12 @@ import java.util.List;
import java.util.zip.DataFormatException;
import java.util.zip.Inflater;
public class CompressingDecoder extends ByteToMessageDecoder
public class Decompressor extends ByteToMessageDecoder
{
private final Inflater inflater;
private int treshold;
public CompressingDecoder(int treshold)
public Decompressor(int treshold)
{
this.treshold = treshold;
this.inflater = new Inflater();

View file

@ -1,5 +1,5 @@
package proxy.network;
public enum PacketDirection {
public enum Direction {
SERVER, CLIENT;
}

View file

@ -7,11 +7,11 @@ import proxy.util.Log;
import java.io.IOException;
public class PacketEncoder extends MessageToByteEncoder<Packet>
public class Encoder extends MessageToByteEncoder<Packet>
{
private final PacketDirection direction;
private final Direction direction;
public PacketEncoder(PacketDirection direction)
public Encoder(Direction direction)
{
this.direction = direction;
}

View file

@ -2,6 +2,8 @@ package proxy.network;
import java.io.IOException;
import proxy.handler.Handler;
public interface Packet<T extends Handler> {
void readPacketData(PacketBuffer buf) throws IOException;
void writePacketData(PacketBuffer buf) throws IOException;

View file

@ -19,9 +19,9 @@ import java.nio.charset.Charset;
import java.util.Map;
import java.util.UUID;
import proxy.util.Vec3;
import proxy.util.Nbt;
import proxy.util.Stack;
import proxy.packet.Nbt;
import proxy.packet.Stack;
import proxy.packet.Vec3;
public class PacketBuffer extends ByteBuf
{

View file

@ -4,7 +4,7 @@ import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
public class PacketPrepender extends MessageToByteEncoder<ByteBuf>
public class Prepender extends MessageToByteEncoder<ByteBuf>
{
protected void encode(ChannelHandlerContext p_encode_1_, ByteBuf p_encode_2_, ByteBuf p_encode_3_) throws Exception
{

View file

@ -15,132 +15,132 @@ public enum Protocol
HANDSHAKE(-1)
{
{
this.registerPacket(PacketDirection.SERVER, H00PacketHandshake.class);
this.registerPacket(Direction.SERVER, H00PacketHandshake.class);
}
},
PLAY(0)
{
{
this.registerPacket(PacketDirection.CLIENT, S00PacketKeepAlive.class);
this.registerPacket(PacketDirection.CLIENT, S01PacketJoinGame.class);
this.registerPacket(PacketDirection.CLIENT, S02PacketChat.class);
this.registerPacket(PacketDirection.CLIENT, S03PacketTimeUpdate.class);
this.registerPacket(PacketDirection.CLIENT, S04PacketEntityEquipment.class);
this.registerPacket(PacketDirection.CLIENT, S05PacketSpawnPosition.class);
this.registerPacket(PacketDirection.CLIENT, S06PacketUpdateHealth.class);
this.registerPacket(PacketDirection.CLIENT, S07PacketRespawn.class);
this.registerPacket(PacketDirection.CLIENT, S08PacketPlayerPosLook.class);
this.registerPacket(PacketDirection.CLIENT, S09PacketHeldItemChange.class);
this.registerPacket(PacketDirection.CLIENT, S0APacketUseBed.class);
this.registerPacket(PacketDirection.CLIENT, S0BPacketAnimation.class);
this.registerPacket(PacketDirection.CLIENT, S0CPacketSpawnPlayer.class);
this.registerPacket(PacketDirection.CLIENT, S0DPacketCollectItem.class);
this.registerPacket(PacketDirection.CLIENT, S0EPacketSpawnObject.class);
this.registerPacket(PacketDirection.CLIENT, S0FPacketSpawnMob.class);
this.registerPacket(PacketDirection.CLIENT, S10PacketSpawnPainting.class);
this.registerPacket(PacketDirection.CLIENT, S11PacketSpawnExperienceOrb.class);
this.registerPacket(PacketDirection.CLIENT, S12PacketEntityVelocity.class);
this.registerPacket(PacketDirection.CLIENT, S13PacketDestroyEntities.class);
this.registerPacket(PacketDirection.CLIENT, S14PacketEntity.class);
this.registerPacket(PacketDirection.CLIENT, S14PacketEntity.S15PacketEntityRelMove.class);
this.registerPacket(PacketDirection.CLIENT, S14PacketEntity.S16PacketEntityLook.class);
this.registerPacket(PacketDirection.CLIENT, S14PacketEntity.S17PacketEntityLookMove.class);
this.registerPacket(PacketDirection.CLIENT, S18PacketEntityTeleport.class);
this.registerPacket(PacketDirection.CLIENT, S19PacketEntityHeadLook.class);
this.registerPacket(PacketDirection.CLIENT, S19PacketEntityStatus.class);
this.registerPacket(PacketDirection.CLIENT, S1BPacketEntityAttach.class);
this.registerPacket(PacketDirection.CLIENT, S1CPacketEntityMetadata.class);
this.registerPacket(PacketDirection.CLIENT, S1DPacketEntityEffect.class);
this.registerPacket(PacketDirection.CLIENT, S1EPacketRemoveEntityEffect.class);
this.registerPacket(PacketDirection.CLIENT, S1FPacketSetExperience.class);
this.registerPacket(PacketDirection.CLIENT, S20PacketEntityProperties.class);
this.registerPacket(PacketDirection.CLIENT, S21PacketChunkData.class);
this.registerPacket(PacketDirection.CLIENT, S22PacketMultiBlockChange.class);
this.registerPacket(PacketDirection.CLIENT, S23PacketBlockChange.class);
this.registerPacket(PacketDirection.CLIENT, S24PacketBlockAction.class);
this.registerPacket(PacketDirection.CLIENT, S25PacketBlockBreakAnim.class);
this.registerPacket(PacketDirection.CLIENT, S26PacketMapChunkBulk.class);
this.registerPacket(PacketDirection.CLIENT, S27PacketExplosion.class);
this.registerPacket(PacketDirection.CLIENT, S28PacketEffect.class);
this.registerPacket(PacketDirection.CLIENT, S29PacketSoundEffect.class);
this.registerPacket(PacketDirection.CLIENT, S2APacketParticles.class);
this.registerPacket(PacketDirection.CLIENT, S2BPacketChangeGameState.class);
this.registerPacket(PacketDirection.CLIENT, S2CPacketSpawnGlobalEntity.class);
this.registerPacket(PacketDirection.CLIENT, S2DPacketOpenWindow.class);
this.registerPacket(PacketDirection.CLIENT, S2EPacketCloseWindow.class);
this.registerPacket(PacketDirection.CLIENT, S2FPacketSetSlot.class);
this.registerPacket(PacketDirection.CLIENT, S30PacketWindowItems.class);
this.registerPacket(PacketDirection.CLIENT, S31PacketWindowProperty.class);
this.registerPacket(PacketDirection.CLIENT, S32PacketConfirmTransaction.class);
this.registerPacket(PacketDirection.CLIENT, S33PacketUpdateSign.class);
this.registerPacket(PacketDirection.CLIENT, S34PacketMaps.class);
this.registerPacket(PacketDirection.CLIENT, S35PacketUpdateTileEntity.class);
this.registerPacket(PacketDirection.CLIENT, S36PacketSignEditorOpen.class);
this.registerPacket(PacketDirection.CLIENT, S37PacketStatistics.class);
this.registerPacket(PacketDirection.CLIENT, S38PacketPlayerListItem.class);
this.registerPacket(PacketDirection.CLIENT, S39PacketPlayerAbilities.class);
this.registerPacket(PacketDirection.CLIENT, S3APacketTabComplete.class);
this.registerPacket(PacketDirection.CLIENT, S3BPacketScoreboardObjective.class);
this.registerPacket(PacketDirection.CLIENT, S3CPacketUpdateScore.class);
this.registerPacket(PacketDirection.CLIENT, S3DPacketDisplayScoreboard.class);
this.registerPacket(PacketDirection.CLIENT, S3EPacketTeams.class);
this.registerPacket(PacketDirection.CLIENT, S3FPacketCustomPayload.class);
this.registerPacket(PacketDirection.CLIENT, S40PacketDisconnect.class);
this.registerPacket(PacketDirection.CLIENT, S41PacketServerDifficulty.class);
this.registerPacket(PacketDirection.CLIENT, S42PacketCombatEvent.class);
this.registerPacket(PacketDirection.CLIENT, S43PacketCamera.class);
this.registerPacket(PacketDirection.CLIENT, S44PacketWorldBorder.class);
this.registerPacket(PacketDirection.CLIENT, S45PacketTitle.class);
this.registerPacket(PacketDirection.CLIENT, S46PacketSetCompressionLevel.class);
this.registerPacket(PacketDirection.CLIENT, S47PacketPlayerListHeaderFooter.class);
this.registerPacket(PacketDirection.CLIENT, S48PacketResourcePackSend.class);
this.registerPacket(PacketDirection.CLIENT, S49PacketUpdateEntityNBT.class);
this.registerPacket(PacketDirection.SERVER, C00PacketKeepAlive.class);
this.registerPacket(PacketDirection.SERVER, C01PacketChatMessage.class);
this.registerPacket(PacketDirection.SERVER, C02PacketUseEntity.class);
this.registerPacket(PacketDirection.SERVER, C03PacketPlayer.class);
this.registerPacket(PacketDirection.SERVER, C03PacketPlayer.C04PacketPlayerPosition.class);
this.registerPacket(PacketDirection.SERVER, C03PacketPlayer.C05PacketPlayerLook.class);
this.registerPacket(PacketDirection.SERVER, C03PacketPlayer.C06PacketPlayerPosLook.class);
this.registerPacket(PacketDirection.SERVER, C07PacketPlayerDigging.class);
this.registerPacket(PacketDirection.SERVER, C08PacketPlayerBlockPlacement.class);
this.registerPacket(PacketDirection.SERVER, C09PacketHeldItemChange.class);
this.registerPacket(PacketDirection.SERVER, C0APacketAnimation.class);
this.registerPacket(PacketDirection.SERVER, C0BPacketEntityAction.class);
this.registerPacket(PacketDirection.SERVER, C0CPacketInput.class);
this.registerPacket(PacketDirection.SERVER, C0DPacketCloseWindow.class);
this.registerPacket(PacketDirection.SERVER, C0EPacketClickWindow.class);
this.registerPacket(PacketDirection.SERVER, C0FPacketConfirmTransaction.class);
this.registerPacket(PacketDirection.SERVER, C10PacketCreativeInventoryAction.class);
this.registerPacket(PacketDirection.SERVER, C11PacketEnchantItem.class);
this.registerPacket(PacketDirection.SERVER, C12PacketUpdateSign.class);
this.registerPacket(PacketDirection.SERVER, C13PacketPlayerAbilities.class);
this.registerPacket(PacketDirection.SERVER, C14PacketTabComplete.class);
this.registerPacket(PacketDirection.SERVER, C15PacketClientSettings.class);
this.registerPacket(PacketDirection.SERVER, C16PacketClientStatus.class);
this.registerPacket(PacketDirection.SERVER, C17PacketCustomPayload.class);
this.registerPacket(PacketDirection.SERVER, C18PacketSpectate.class);
this.registerPacket(PacketDirection.SERVER, C19PacketResourcePackStatus.class);
this.registerPacket(Direction.CLIENT, S00PacketKeepAlive.class);
this.registerPacket(Direction.CLIENT, S01PacketJoinGame.class);
this.registerPacket(Direction.CLIENT, S02PacketChat.class);
this.registerPacket(Direction.CLIENT, S03PacketTimeUpdate.class);
this.registerPacket(Direction.CLIENT, S04PacketEntityEquipment.class);
this.registerPacket(Direction.CLIENT, S05PacketSpawnPosition.class);
this.registerPacket(Direction.CLIENT, S06PacketUpdateHealth.class);
this.registerPacket(Direction.CLIENT, S07PacketRespawn.class);
this.registerPacket(Direction.CLIENT, S08PacketPlayerPosLook.class);
this.registerPacket(Direction.CLIENT, S09PacketHeldItemChange.class);
this.registerPacket(Direction.CLIENT, S0APacketUseBed.class);
this.registerPacket(Direction.CLIENT, S0BPacketAnimation.class);
this.registerPacket(Direction.CLIENT, S0CPacketSpawnPlayer.class);
this.registerPacket(Direction.CLIENT, S0DPacketCollectItem.class);
this.registerPacket(Direction.CLIENT, S0EPacketSpawnObject.class);
this.registerPacket(Direction.CLIENT, S0FPacketSpawnMob.class);
this.registerPacket(Direction.CLIENT, S10PacketSpawnPainting.class);
this.registerPacket(Direction.CLIENT, S11PacketSpawnExperienceOrb.class);
this.registerPacket(Direction.CLIENT, S12PacketEntityVelocity.class);
this.registerPacket(Direction.CLIENT, S13PacketDestroyEntities.class);
this.registerPacket(Direction.CLIENT, S14PacketEntity.class);
this.registerPacket(Direction.CLIENT, S14PacketEntity.S15PacketEntityRelMove.class);
this.registerPacket(Direction.CLIENT, S14PacketEntity.S16PacketEntityLook.class);
this.registerPacket(Direction.CLIENT, S14PacketEntity.S17PacketEntityLookMove.class);
this.registerPacket(Direction.CLIENT, S18PacketEntityTeleport.class);
this.registerPacket(Direction.CLIENT, S19PacketEntityHeadLook.class);
this.registerPacket(Direction.CLIENT, S19PacketEntityStatus.class);
this.registerPacket(Direction.CLIENT, S1BPacketEntityAttach.class);
this.registerPacket(Direction.CLIENT, S1CPacketEntityMetadata.class);
this.registerPacket(Direction.CLIENT, S1DPacketEntityEffect.class);
this.registerPacket(Direction.CLIENT, S1EPacketRemoveEntityEffect.class);
this.registerPacket(Direction.CLIENT, S1FPacketSetExperience.class);
this.registerPacket(Direction.CLIENT, S20PacketEntityProperties.class);
this.registerPacket(Direction.CLIENT, S21PacketChunkData.class);
this.registerPacket(Direction.CLIENT, S22PacketMultiBlockChange.class);
this.registerPacket(Direction.CLIENT, S23PacketBlockChange.class);
this.registerPacket(Direction.CLIENT, S24PacketBlockAction.class);
this.registerPacket(Direction.CLIENT, S25PacketBlockBreakAnim.class);
this.registerPacket(Direction.CLIENT, S26PacketMapChunkBulk.class);
this.registerPacket(Direction.CLIENT, S27PacketExplosion.class);
this.registerPacket(Direction.CLIENT, S28PacketEffect.class);
this.registerPacket(Direction.CLIENT, S29PacketSoundEffect.class);
this.registerPacket(Direction.CLIENT, S2APacketParticles.class);
this.registerPacket(Direction.CLIENT, S2BPacketChangeGameState.class);
this.registerPacket(Direction.CLIENT, S2CPacketSpawnGlobalEntity.class);
this.registerPacket(Direction.CLIENT, S2DPacketOpenWindow.class);
this.registerPacket(Direction.CLIENT, S2EPacketCloseWindow.class);
this.registerPacket(Direction.CLIENT, S2FPacketSetSlot.class);
this.registerPacket(Direction.CLIENT, S30PacketWindowItems.class);
this.registerPacket(Direction.CLIENT, S31PacketWindowProperty.class);
this.registerPacket(Direction.CLIENT, S32PacketConfirmTransaction.class);
this.registerPacket(Direction.CLIENT, S33PacketUpdateSign.class);
this.registerPacket(Direction.CLIENT, S34PacketMaps.class);
this.registerPacket(Direction.CLIENT, S35PacketUpdateTileEntity.class);
this.registerPacket(Direction.CLIENT, S36PacketSignEditorOpen.class);
this.registerPacket(Direction.CLIENT, S37PacketStatistics.class);
this.registerPacket(Direction.CLIENT, S38PacketPlayerListItem.class);
this.registerPacket(Direction.CLIENT, S39PacketPlayerAbilities.class);
this.registerPacket(Direction.CLIENT, S3APacketTabComplete.class);
this.registerPacket(Direction.CLIENT, S3BPacketScoreboardObjective.class);
this.registerPacket(Direction.CLIENT, S3CPacketUpdateScore.class);
this.registerPacket(Direction.CLIENT, S3DPacketDisplayScoreboard.class);
this.registerPacket(Direction.CLIENT, S3EPacketTeams.class);
this.registerPacket(Direction.CLIENT, S3FPacketCustomPayload.class);
this.registerPacket(Direction.CLIENT, S40PacketDisconnect.class);
this.registerPacket(Direction.CLIENT, S41PacketServerDifficulty.class);
this.registerPacket(Direction.CLIENT, S42PacketCombatEvent.class);
this.registerPacket(Direction.CLIENT, S43PacketCamera.class);
this.registerPacket(Direction.CLIENT, S44PacketWorldBorder.class);
this.registerPacket(Direction.CLIENT, S45PacketTitle.class);
this.registerPacket(Direction.CLIENT, S46PacketSetCompressionLevel.class);
this.registerPacket(Direction.CLIENT, S47PacketPlayerListHeaderFooter.class);
this.registerPacket(Direction.CLIENT, S48PacketResourcePackSend.class);
this.registerPacket(Direction.CLIENT, S49PacketUpdateEntityNBT.class);
this.registerPacket(Direction.SERVER, C00PacketKeepAlive.class);
this.registerPacket(Direction.SERVER, C01PacketChatMessage.class);
this.registerPacket(Direction.SERVER, C02PacketUseEntity.class);
this.registerPacket(Direction.SERVER, C03PacketPlayer.class);
this.registerPacket(Direction.SERVER, C03PacketPlayer.C04PacketPlayerPosition.class);
this.registerPacket(Direction.SERVER, C03PacketPlayer.C05PacketPlayerLook.class);
this.registerPacket(Direction.SERVER, C03PacketPlayer.C06PacketPlayerPosLook.class);
this.registerPacket(Direction.SERVER, C07PacketPlayerDigging.class);
this.registerPacket(Direction.SERVER, C08PacketPlayerBlockPlacement.class);
this.registerPacket(Direction.SERVER, C09PacketHeldItemChange.class);
this.registerPacket(Direction.SERVER, C0APacketAnimation.class);
this.registerPacket(Direction.SERVER, C0BPacketEntityAction.class);
this.registerPacket(Direction.SERVER, C0CPacketInput.class);
this.registerPacket(Direction.SERVER, C0DPacketCloseWindow.class);
this.registerPacket(Direction.SERVER, C0EPacketClickWindow.class);
this.registerPacket(Direction.SERVER, C0FPacketConfirmTransaction.class);
this.registerPacket(Direction.SERVER, C10PacketCreativeInventoryAction.class);
this.registerPacket(Direction.SERVER, C11PacketEnchantItem.class);
this.registerPacket(Direction.SERVER, C12PacketUpdateSign.class);
this.registerPacket(Direction.SERVER, C13PacketPlayerAbilities.class);
this.registerPacket(Direction.SERVER, C14PacketTabComplete.class);
this.registerPacket(Direction.SERVER, C15PacketClientSettings.class);
this.registerPacket(Direction.SERVER, C16PacketClientStatus.class);
this.registerPacket(Direction.SERVER, C17PacketCustomPayload.class);
this.registerPacket(Direction.SERVER, C18PacketSpectate.class);
this.registerPacket(Direction.SERVER, C19PacketResourcePackStatus.class);
}
},
STATUS(1)
{
{
this.registerPacket(PacketDirection.SERVER, Q00PacketServerQuery.class);
this.registerPacket(PacketDirection.CLIENT, I00PacketServerInfo.class);
this.registerPacket(PacketDirection.SERVER, Q01PacketPing.class);
this.registerPacket(PacketDirection.CLIENT, I01PacketPong.class);
this.registerPacket(Direction.SERVER, Q00PacketServerQuery.class);
this.registerPacket(Direction.CLIENT, I00PacketServerInfo.class);
this.registerPacket(Direction.SERVER, Q01PacketPing.class);
this.registerPacket(Direction.CLIENT, I01PacketPong.class);
}
},
LOGIN(2)
{
{
this.registerPacket(PacketDirection.CLIENT, R00PacketDisconnect.class);
this.registerPacket(PacketDirection.CLIENT, R01PacketEncryptionRequest.class);
this.registerPacket(PacketDirection.CLIENT, R02PacketLoginSuccess.class);
this.registerPacket(PacketDirection.CLIENT, R03PacketEnableCompression.class);
this.registerPacket(PacketDirection.SERVER, L00PacketLoginStart.class);
this.registerPacket(PacketDirection.SERVER, L01PacketEncryptionResponse.class);
this.registerPacket(Direction.CLIENT, R00PacketDisconnect.class);
this.registerPacket(Direction.CLIENT, R01PacketEncryptionRequest.class);
this.registerPacket(Direction.CLIENT, R02PacketLoginSuccess.class);
this.registerPacket(Direction.CLIENT, R03PacketEnableCompression.class);
this.registerPacket(Direction.SERVER, L00PacketLoginStart.class);
this.registerPacket(Direction.SERVER, L01PacketEncryptionResponse.class);
}
};
@ -149,15 +149,15 @@ public enum Protocol
private static final Protocol[] STATES_BY_ID = new Protocol[field_181137_f - field_181136_e + 1];
private static final Map < Class <? extends Packet > , Protocol > STATES_BY_CLASS = Maps. < Class <? extends Packet > , Protocol > newHashMap();
private final int id;
private final Map < PacketDirection, BiMap < Integer, Class <? extends Packet >>> directionMaps;
private final Map < Direction, BiMap < Integer, Class <? extends Packet >>> directionMaps;
private Protocol(int protocolId)
{
this.directionMaps = Maps.newEnumMap(PacketDirection.class);
this.directionMaps = Maps.newEnumMap(Direction.class);
this.id = protocolId;
}
protected Protocol registerPacket(PacketDirection direction, Class <? extends Packet > packetClass)
protected Protocol registerPacket(Direction direction, Class <? extends Packet > packetClass)
{
BiMap < Integer, Class <? extends Packet >> bimap = (BiMap)this.directionMaps.get(direction);
@ -180,12 +180,12 @@ public enum Protocol
}
}
public Integer getPacketId(PacketDirection direction, Packet packetIn)
public Integer getPacketId(Direction direction, Packet packetIn)
{
return (Integer)((BiMap)this.directionMaps.get(direction)).inverse().get(packetIn.getClass());
}
public Packet getPacket(PacketDirection direction, int packetId) throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
public Packet getPacket(Direction direction, int packetId) throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
Class <? extends Packet > oclass = (Class)((BiMap)this.directionMaps.get(direction)).get(Integer.valueOf(packetId));
return oclass == null ? null : (Packet)oclass.getConstructor().newInstance();
}
@ -217,7 +217,7 @@ public enum Protocol
STATES_BY_ID[i - field_181136_e] = enumconnectionstate;
for (PacketDirection enumpacketdirection : enumconnectionstate.directionMaps.keySet())
for (Direction enumpacketdirection : enumconnectionstate.directionMaps.keySet())
{
for (Class <? extends Packet > oclass : (enumconnectionstate.directionMaps.get(enumpacketdirection)).values())
{

View file

@ -7,7 +7,7 @@ import io.netty.handler.codec.ByteToMessageDecoder;
import io.netty.handler.codec.CorruptedFrameException;
import java.util.List;
public class PacketSplitter extends ByteToMessageDecoder
public class Splitter extends ByteToMessageDecoder
{
protected void decode(ChannelHandlerContext p_decode_1_, ByteBuf p_decode_2_, List<Object> p_decode_3_) throws Exception
{

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Vec3;
public class C07PacketPlayerDigging implements Packet<ProxyHandler>
{

View file

@ -2,11 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Vec3;
import proxy.util.Stack;
public class C08PacketPlayerBlockPlacement implements Packet<ProxyHandler>
{

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Stack;
public class C0EPacketClickWindow implements Packet<ProxyHandler>
{

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Stack;
public class C10PacketCreativeInventoryAction implements Packet<ProxyHandler>
{

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Vec3;
public class C12PacketUpdateSign implements Packet<ProxyHandler>
{

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Vec3;
public class C14PacketTabComplete implements Packet<ProxyHandler>
{

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -5,7 +5,7 @@ import io.netty.buffer.Unpooled;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -3,7 +3,7 @@ package proxy.packet;
import java.io.IOException;
import java.util.UUID;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -1,4 +1,4 @@
package proxy.util;
package proxy.packet;
import java.io.IOException;
import java.util.List;

View file

@ -1,7 +1,7 @@
package proxy.packet;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.ProxyHandler;
public abstract class EntityIdPacketClient implements Packet<ProxyHandler> {
protected int entityId;

View file

@ -1,7 +1,7 @@
package proxy.packet;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.ProxyHandler;
public abstract class EntityIdPacketServer implements Packet<ProxyHandler> {
protected int entityId;

View file

@ -3,7 +3,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.Protocol;
import proxy.network.HandshakeHandler;
import proxy.handler.HandshakeHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.StatusHandler;
import proxy.handler.StatusHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.ServerInfo;
public class I00PacketServerInfo implements Packet<StatusHandler> {

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.StatusHandler;
import proxy.handler.StatusHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.LoginHandler;
import proxy.handler.LoginHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.LoginHandler;
import proxy.handler.LoginHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -1,4 +1,4 @@
package proxy.util;
package proxy.packet;
import java.io.DataInput;
import java.io.DataOutput;

View file

@ -1,4 +1,4 @@
package proxy.util;
package proxy.packet;
import java.util.UUID;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.StatusHandler;
import proxy.handler.StatusHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.StatusHandler;
import proxy.handler.StatusHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler.ProxyLoginHandler;
import proxy.handler.ProxyHandler.ProxyLoginHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Formatter;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler.ProxyLoginHandler;
import proxy.handler.ProxyHandler.ProxyLoginHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -3,7 +3,7 @@ package proxy.packet;
import java.io.IOException;
import java.util.UUID;
import proxy.network.ProxyHandler.ProxyLoginHandler;
import proxy.handler.ProxyHandler.ProxyLoginHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler.ProxyLoginHandler;
import proxy.handler.ProxyHandler.ProxyLoginHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Formatter;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Stack;
public class S04PacketEntityEquipment extends EntityIdPacketClient implements Packet<ProxyHandler>
{

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Vec3;
public class S05PacketSpawnPosition implements Packet<ProxyHandler>
{

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -5,7 +5,7 @@ import java.util.Collections;
import java.util.EnumSet;
import java.util.Set;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Vec3;
public class S0APacketUseBed extends EntityIdPacketClient implements Packet<ProxyHandler>
{

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -4,10 +4,9 @@ import java.io.IOException;
import java.util.List;
import java.util.UUID;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.EntityData;
public class S0CPacketSpawnPlayer extends EntityIdPacketClient implements Packet<ProxyHandler>
{

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -3,10 +3,9 @@ package proxy.packet;
import java.io.IOException;
import java.util.List;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.EntityData;
public class S0FPacketSpawnMob implements Packet<ProxyHandler>
{

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Vec3;
public class S10PacketSpawnPainting implements Packet<ProxyHandler>
{

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -3,10 +3,9 @@ package proxy.packet;
import java.io.IOException;
import java.util.List;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.EntityData;
public class S1CPacketEntityMetadata extends EntityIdPacketClient implements Packet<ProxyHandler>
{

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -7,7 +7,7 @@ import java.util.UUID;
import com.google.common.collect.Lists;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,7 +2,7 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Vec3;
public class S23PacketBlockChange implements Packet<ProxyHandler>
{

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Vec3;
public class S24PacketBlockAction implements Packet<ProxyHandler>
{

View file

@ -2,10 +2,9 @@ package proxy.packet;
import java.io.IOException;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Vec3;
public class S25PacketBlockBreakAnim extends EntityIdPacketClient implements Packet<ProxyHandler>
{

View file

@ -3,7 +3,7 @@ package proxy.packet;
import java.io.IOException;
import java.util.Arrays;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;

View file

@ -5,10 +5,9 @@ import java.util.List;
import com.google.common.collect.Lists;
import proxy.network.ProxyHandler;
import proxy.handler.ProxyHandler;
import proxy.network.Packet;
import proxy.network.PacketBuffer;
import proxy.util.Vec3;
public class S27PacketExplosion implements Packet<ProxyHandler>
{

Some files were not shown because too many files have changed in this diff Show more