Remove old abstractions

This commit is contained in:
ah-OOG-ah committed 2025-10-06 12:14:06 -04:00
1 parent 4923294af2
commit 0e024cf8a6
2 files changed
-68

No files matched your search

@@ -1,39 +0,0 @@
package com.gtnewhorizon.gtnhlib.client.model.template;
import net.minecraft.util.ResourceLocation;
import com.gtnewhorizon.gtnhlib.client.model.BakedModel;
import com.gtnewhorizon.gtnhlib.client.model.JSONVariant;
import com.gtnewhorizon.gtnhlib.client.model.loading.ModelLoader;
/**
* Use this to create a full cube column rotatable in 3 directions - vertical, x, and z
*/
public class Column3Rot {
public final JSONVariant[] jsonVariants = new JSONVariant[3];
public final BakedModel[] models = new BakedModel[3];
public Column3Rot(ResourceLocation model) {
this.jsonVariants[0] = new JSONVariant(model, 0, 0, 0, false);
this.jsonVariants[1] = new JSONVariant(model, 90, 90, 0, false);
this.jsonVariants[2] = new JSONVariant(model, 90, 0, 0, false);
ModelLoader.registerModels(
() -> { for (int i = 0; i < 3; ++i) this.models[i] = ModelLoader.getModel(this.jsonVariants[i]); },
this.jsonVariants);
}
public BakedModel updown() {
return this.models[0];
}
public BakedModel eastwest() {
return this.models[1];
}
public BakedModel northsouth() {
return this.models[2];
}
}
@@ -1,29 +0,0 @@
package com.gtnewhorizon.gtnhlib.client.model.template;
import net.minecraft.util.ResourceLocation;
import com.gtnewhorizon.gtnhlib.client.model.BakedModel;
import com.gtnewhorizon.gtnhlib.client.model.JSONVariant;
import com.gtnewhorizon.gtnhlib.client.model.loading.ModelLoader;
/**
* Use this to create JSON model rotatable in 4 directions - NSWE
*/
public class Model4Rot {
public final BakedModel[] models = new BakedModel[4];
private final JSONVariant[] modelIds;
public Model4Rot(ResourceLocation modelLoc) {
this.modelIds = new JSONVariant[] { new JSONVariant(modelLoc, 0, 0, 0, false),
new JSONVariant(modelLoc, 0, 180, 0, false), new JSONVariant(modelLoc, 0, 90, 0, false),
new JSONVariant(modelLoc, 0, 270, 0, false) };
ModelLoader.registerModels(() -> loadModels(this), this.modelIds);
}
public static void loadModels(Model4Rot model) {
for (int i = 0; i < 4; ++i) model.models[i] = ModelLoader.getModel(model.modelIds[i]);
}
}