diff --git a/src/main/java/land/chipmunk/chipmunkmod/util/gson/Vec3dTypeAdapter.java b/src/main/java/land/chipmunk/chipmunkmod/util/gson/Vec3dTypeAdapter.java deleted file mode 100644 index 514b864..0000000 --- a/src/main/java/land/chipmunk/chipmunkmod/util/gson/Vec3dTypeAdapter.java +++ /dev/null @@ -1,37 +0,0 @@ -package land.chipmunk.chipmunkmod.util.gson; - -import net.minecraft.util.math.Vec3d; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonToken; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -public class Vec3dTypeAdapter extends TypeAdapter { - @Override - public Vec3d read (JsonReader reader) throws IOException {land.chipmunk.chipmunkmod.ChipmunkMod.LOGGER.info("started reading the thing"); - Vec3d vec = new Vec3d(0, 0, 0); - - reader.beginObject(); -land.chipmunk.chipmunkmod.ChipmunkMod.LOGGER.info("began object"); - while (!reader.peek().equals(JsonToken.END_OBJECT)) {land.chipmunk.chipmunkmod.ChipmunkMod.LOGGER.info("while loop moment"); - if (reader.peek().equals(JsonToken.NAME)) {land.chipmunk.chipmunkmod.ChipmunkMod.LOGGER.info("i guess a name"); - String name = reader.nextName(); -land.chipmunk.chipmunkmod.ChipmunkMod.LOGGER.info("the name is {}", name); - if (name.equals("x")) vec = new Vec3d(reader.nextDouble(), 0, 0); - else if (name.equals("y")) vec = new Vec3d(0, reader.nextDouble(), 0); - else if (name.equals("z")) vec = new Vec3d(0, 0, reader.nextDouble()); - else reader.skipValue(); - } - } - - reader.endObject(); -land.chipmunk.chipmunkmod.ChipmunkMod.LOGGER.info("ended object (btw vec is {})", vec); - return vec; - } - - @Override - public void write (JsonWriter out, Vec3d vec) throws IOException { - // TODO: make this do something lmfaooo - } -}