@Override
public ByteBuf encodeToClient(PlayerLoginRequestMessage message) {
PlayerLoginRequestMessage server = message;
ByteBuf buffer = Unpooled.buffer();
buffer.writeInt(server.getId());
VanillaByteBufUtils.writeString(buffer, server.getWorldType());
buffer.writeByte(server.getGameMode());
buffer.writeByte(server.getDimension());
buffer.writeByte(server.getDifficulty());
buffer.writeByte(0);