Added display of brand name under f3

This commit is contained in:
MiGoYAm
2021-12-10 17:00:08 +01:00
parent 2dfb952d71
commit 1d200dcfd9
5 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package ru.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version;
public class PacketPluginMessage implements PacketOut {
private String channel;
private String message;
public void setChannel(String channel){
this.channel = channel;
}
public void setMessage(String message){
this.message = message;
}
@Override
public void encode(ByteMessage msg, Version version) {
msg.writeString(channel);
msg.writeString(message);
}
}

View File

@@ -87,6 +87,10 @@ public enum State {
map(0x24, V1_16_2, V1_16_4),
map(0x26, V1_17, V1_18)
);
// to do
clientBound.register(PacketPluginMessage::new,
map(0x18, V1_18, V1_18)
);
clientBound.register(PacketPlayerAbilities::new,
map(0x39, V1_8, V1_8),
map(0x2B, V1_9, V1_12),