@Nonnull
    @Override
    public JsonObject serialize() {
        return JsonBuilder.object()
                .add("yaw", this.yaw)
                .add("pitch", this.pitch)
                .build();
    }
An immutable and serializable direction object
helper/src/main/java/me/lucko/helper/serialize/Direction.java