diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-11 17:49:56 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-11 17:49:56 +0100 |
commit | 3e207ef1cdbb895a8a70eefd435ebbd34b1e71d3 (patch) | |
tree | b395d5cddd3c2203823a29456976de1584741b6c /src/main/java | |
parent | 0ede153cd987591df391432c3e7de344b2e5ffba (diff) | |
download | skyhanni-3e207ef1cdbb895a8a70eefd435ebbd34b1e71d3.tar.gz skyhanni-3e207ef1cdbb895a8a70eefd435ebbd34b1e71d3.tar.bz2 skyhanni-3e207ef1cdbb895a8a70eefd435ebbd34b1e71d3.zip |
prepare for the future
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt index d55f8f911..bec3af2f1 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt @@ -27,6 +27,7 @@ import net.minecraft.launchwrapper.Launch import net.minecraft.util.ChatComponentText import net.minecraftforge.fml.common.FMLCommonHandler import java.awt.Color +import java.lang.reflect.Constructor import java.lang.reflect.Field import java.lang.reflect.Modifier import java.text.DecimalFormat @@ -578,6 +579,8 @@ object LorenzUtils { fun Field.makeAccessible() = also { isAccessible = true } + fun <T> Constructor<T>.makeAccessible() = also { isAccessible = true } + // Taken and modified from Skytils @JvmStatic fun <T> T.equalsOneOf(vararg other: T): Boolean { |