From af975c4947b2ff2e73ae093afe59f5d7128b82ab Mon Sep 17 00:00:00 2001 From: Chipmunk <65827213+ChipmunkMC@users.noreply.github.com> Date: Wed, 3 May 2023 00:11:19 -0400 Subject: [PATCH] remove unused file it will mabe be used soon:tm: --- .../util/gson/Vec3dTypeAdapter.java | 37 ------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/main/java/land/chipmunk/chipmunkmod/util/gson/Vec3dTypeAdapter.java 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 - } -}