Ejemplo n.º 1
0
 public ByteBuf encode(ByteBuf buf, UpdateSignMessage message) throws IOException {
   GlowBufUtils.writeBlockPosition(buf, message.getX(), message.getY(), message.getZ());
   for (String line : message.getMessage()) {
     ByteBufUtils.writeUTF8(buf, line);
   }
   return buf;
 }
 @Override
 public ByteBuf encode(ByteBuf buf, UpdateSignMessage message) throws IOException {
   GlowBufUtils.writeBlockPosition(buf, message.getX(), message.getY(), message.getZ());
   for (TextMessage line : message.getMessage()) {
     GlowBufUtils.writeChat(buf, line);
   }
   return buf;
 }