mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 13:52:23 +00:00
Rename Packet
This commit is contained in:
1 parent
8a2a3e1ac3
commit
d2da5c6000
1 file changed
@@ -0,0 +1,39 @@
|
||||
package kamkeel.network.packets.client;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import kamkeel.network.AbstractPacket;
|
||||
import kamkeel.network.PacketChannel;
|
||||
import kamkeel.network.PacketHandler;
|
||||
import kamkeel.network.enums.EnumClientPacket;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import noppes.npcs.NoppesUtil;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public final class LargeNBTPartPacket extends AbstractPacket {
|
||||
public static final String packetName = "Client|LargeNBTPart";
|
||||
|
||||
public LargeNBTPartPacket() {}
|
||||
|
||||
@Override
|
||||
public Enum getType() {
|
||||
return EnumClientPacket.LARGE_NBT_PART;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PacketChannel getChannel() {
|
||||
return PacketHandler.CLIENT_PACKET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendData(ByteBuf out) throws IOException {
|
||||
// TODO: Send Packet
|
||||
}
|
||||
|
||||
@Override
|
||||
public void receiveData(ByteBuf in, EntityPlayer player) throws IOException {
|
||||
byte[] chunk = new byte[in.readShort()];
|
||||
in.readBytes(chunk);
|
||||
NoppesUtil.handleLargeData(chunk);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user