remove unused file

it will mabe be used soon™️
This commit is contained in:
Chipmunk 2023-05-03 00:11:19 -04:00
parent 03279e813c
commit af975c4947

View file

@ -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<Vec3d> {
@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
}
}