use of net.glowstone.net.message.play.game.UpdateSignMessage in project Glowstone by GlowstoneMC.
the class UpdateSignCodec method decode.
@Override
public UpdateSignMessage decode(ByteBuf buf) throws IOException {
BlockVector pos = GlowBufUtils.readBlockPosition(buf);
TextMessage[] message = new TextMessage[4];
for (int i = 0; i < message.length; ++i) {
message[i] = GlowBufUtils.readChat(buf);
}
return new UpdateSignMessage(pos.getBlockX(), pos.getBlockY(), pos.getBlockZ(), message);
}
Aggregations