use of net.glowstone.net.message.play.game.UserListHeaderFooterMessage in project Glowstone by GlowstoneMC.
the class GlowPlayer method setPlayerListHeaderFooter.
@Override
public void setPlayerListHeaderFooter(BaseComponent[] header, BaseComponent[] footer) {
TextMessage h = TextMessage.decode(ComponentSerializer.toString(header));
TextMessage f = TextMessage.decode(ComponentSerializer.toString(footer));
session.send(new UserListHeaderFooterMessage(h, f));
}
use of net.glowstone.net.message.play.game.UserListHeaderFooterMessage in project Glowstone by GlowstoneMC.
the class UserListHeaderFooterCodec method decode.
@Override
public UserListHeaderFooterMessage decode(ByteBuf buffer) throws IOException {
TextMessage header = GlowBufUtils.readChat(buffer);
TextMessage footer = GlowBufUtils.readChat(buffer);
return new UserListHeaderFooterMessage(header, footer);
}
Aggregations