Skip to content

Commit

Permalink
fixing 1.8 branch errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kurrycat committed Apr 17, 2023
1 parent 4885cf5 commit f578681
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.MarkerManager;
import sun.reflect.Reflection;

import java.awt.*;
import java.time.Instant;
Expand Down Expand Up @@ -46,14 +45,14 @@ public class API {
public static Map<String, Procedure> keyBindingMap = new HashMap<>();

public static boolean discordRpcInitialized = false;
public static HashMap<String, Option> optionsMap;
private static FunctionHolder functionHolder;

public static HashMap<String, Option> optionsMap;
/*@Option.Field
public static String testOption = "String Option";*/

/* public static int metronome = 0;*/


/**
* Gets called at the beginning of mod init<br>
* Register GUIs here using {@link #registerGUIScreen(String, MPKGuiScreen) registerGuiScreen}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import io.github.kurrycat.mpkmod.ticks.TickInput;
import io.github.kurrycat.mpkmod.util.BoundingBox3D;
import io.github.kurrycat.mpkmod.util.Vector3D;
import net.minecraftforge.event.entity.player.PlayerUseItemEvent;

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import io.github.kurrycat.mpkmod.save.Serializer;
import io.github.kurrycat.mpkmod.util.ClassUtil;
import io.github.kurrycat.mpkmod.util.JSONConfig;
import net.minecraft.util.Tuple;
import io.github.kurrycat.mpkmod.util.Tuple;

import java.awt.*;
import java.lang.annotation.ElementType;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/io/github/kurrycat/mpkmod/util/ClassUtil.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.github.kurrycat.mpkmod.util;

import net.minecraft.util.Tuple;

import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
Expand Down
27 changes: 27 additions & 0 deletions src/main/java/io/github/kurrycat/mpkmod/util/Tuple.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.github.kurrycat.mpkmod.util;

public class Tuple<A, B> {
private A a;
private B b;

public Tuple(A a, B b) {
this.a = a;
this.b = b;
}

public A getFirst() {
return this.a;
}

public void setFirst(A a) {
this.a = a;
}

public B getSecond() {
return this.b;
}

public void setSecond(B b) {
this.b = b;
}
}

0 comments on commit f578681

Please sign in to comment.