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;
 }
Ejemplo n.º 3
0
 @Override
 public ByteBuf encode(ByteBuf buf, UseBedMessage message) throws IOException {
   ByteBufUtils.writeVarInt(buf, message.getId());
   GlowBufUtils.writeBlockPosition(buf, message.getX(), message.getY(), message.getZ());
   return buf;
 }