mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-28 15:56:03 +00:00
add optional Draconic Evolution configurable integration (#83)
This commit is contained in:
1 parent
77468df939
commit
59d9cafe1e
26 files changed
+1108
-148
No files matched your search
+22
@@ -0,0 +1,22 @@
|
||||
package fox.spiteful.avaritia.compat.draconicevolution;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import com.brandon3055.draconicevolution.common.utils.IConfigurableItem;
|
||||
|
||||
import cpw.mods.fml.common.Optional;
|
||||
|
||||
public class InfinityConfigProfileBridge {
|
||||
|
||||
private InfinityConfigProfileBridge() {}
|
||||
|
||||
@Optional.Method(modid = "DraconicEvolution")
|
||||
public static boolean getBoolean(ItemStack stack, String key, boolean defaultValue) {
|
||||
return IConfigurableItem.ProfileHelper.getBoolean(stack, key, defaultValue);
|
||||
}
|
||||
|
||||
@Optional.Method(modid = "DraconicEvolution")
|
||||
public static float getFloat(ItemStack stack, String key, float defaultValue) {
|
||||
return IConfigurableItem.ProfileHelper.getFloat(stack, key, defaultValue);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user