mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 21:01:02 -05:00
Create stub implementation for ServerDeclareRecipesPacket
This commit is contained in:
parent
258efd8be2
commit
e9686ac487
2 changed files with 37 additions and 1 deletions
|
@ -44,6 +44,7 @@ import com.github.steveice10.mc.protocol.packet.ingame.server.ServerBossBarPacke
|
|||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerChatPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerCombatPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerDeclareCommandsPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerDeclareRecipesPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerDifficultyPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerDisconnectPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerJoinGamePacket;
|
||||
|
@ -428,7 +429,7 @@ public class MinecraftProtocol extends PacketProtocol {
|
|||
this.registerIncoming(0x51, ServerAdvancementsPacket.class);
|
||||
this.registerIncoming(0x52, ServerEntityPropertiesPacket.class);
|
||||
this.registerIncoming(0x53, ServerEntityEffectPacket.class);
|
||||
// FIXME: 54
|
||||
this.registerIncoming(0x54, ServerDeclareRecipesPacket.class);
|
||||
// FIXME: 55
|
||||
|
||||
this.registerOutgoing(0x00, ClientTeleportConfirmPacket.class);
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
package com.github.steveice10.mc.protocol.packet.ingame.server;
|
||||
|
||||
import com.github.steveice10.mc.protocol.packet.MinecraftPacket;
|
||||
import com.github.steveice10.packetlib.io.NetInput;
|
||||
import com.github.steveice10.packetlib.io.NetOutput;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class ServerDeclareRecipesPacket extends MinecraftPacket {
|
||||
private byte[] data;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private ServerDeclareRecipesPacket() {
|
||||
}
|
||||
|
||||
@Deprecated // This packet isn't fully implemented, please send a PR if you need to use it
|
||||
public ServerDeclareRecipesPacket(byte[] data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
@Deprecated // This packet isn't fully implemented, please send a PR if you need to use it
|
||||
public byte[] getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void read(NetInput in) throws IOException {
|
||||
this.data = in.readBytes(in.available());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(NetOutput out) throws IOException {
|
||||
out.writeBytes(this.data);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue