dumb mistake! jei compiles now

This commit is contained in:
gamma-delta 2022-11-03 20:33:51 +01:00
parent 7c65777e22
commit aa9e871352
2 changed files with 15 additions and 6 deletions

View file

@ -141,9 +141,9 @@ dependencies {
// Optional interop
// For some reason this isn't working so for now it will be commented out
// compileOnly fg.deobf("mezz.jei:jei-$minecraftVersion-1.19.2-forge-api:$jeiVersion")
// runtimeOnly fg.deobf("mezz.jei:jei-$minecraftVersion-1.19.2-forge:$jeiVersion")
compileOnly fg.deobf("mezz.jei:jei-$minecraftVersion-common-api:$jeiVersion")
compileOnly fg.deobf("mezz.jei:jei-$minecraftVersion-forge-api:$jeiVersion")
runtimeOnly fg.deobf("mezz.jei:jei-$minecraftVersion-forge:$jeiVersion")
api fg.deobf("com.github.Virtuoel:Pehkui:${pehkuiVersion}-${minecraftVersion}-forge")
}

View file

@ -1,7 +1,17 @@
package at.petrak.hexcasting.forge.interop.jei;
/*
import at.petrak.hexcasting.api.PatternRegistry;
import at.petrak.hexcasting.api.spell.math.HexCoord;
import at.petrak.hexcasting.interop.utils.PatternDrawingUtil;
import at.petrak.hexcasting.interop.utils.PatternEntry;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.datafixers.util.Pair;
import mezz.jei.api.gui.drawable.IDrawable;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.phys.Vec2;
import java.util.List;
public class PatternDrawable implements IDrawable {
private final long startTime = System.currentTimeMillis();
@ -17,7 +27,7 @@ public class PatternDrawable implements IDrawable {
public PatternDrawable(ResourceLocation pattern, int w, int h) {
var entry = PatternRegistry.lookupPattern(pattern);
this.strokeOrder = !entry.isPerWorld();
var data = PatternDrawingUtil.loadPatterns(List.of(new Pair<>(entry.getPrototype(), HexCoord.getOrigin())));
var data = PatternDrawingUtil.loadPatterns(List.of(new Pair<>(entry.prototype(), HexCoord.getOrigin())));
this.patterns = data.patterns();
this.pathfinderDots = data.pathfinderDots();
this.width = w;
@ -45,4 +55,3 @@ public class PatternDrawable implements IDrawable {
poseStack.popPose();
}
}
*/