mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2026-02-12 11:56:14 +01:00
Added display of brand name under f3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user