mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 07:13:14 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4db1b05c8 | ||
|
|
40d0b5e228 | ||
|
|
88959889c0 | ||
|
|
bf576acc88 | ||
|
|
5f49bd0cf5 | ||
|
|
40fef65857 |
No files matched your search
+12
-11
@@ -40,30 +40,31 @@ repositories {
|
||||
name 'DVS1 Maven FS'
|
||||
url 'http://dvs1.progwml6.com/files/maven'
|
||||
}
|
||||
maven {
|
||||
name 'TehNut Repo'
|
||||
url 'http://tehnut.info/maven/'
|
||||
}
|
||||
maven {
|
||||
name 'tterrag Repo'
|
||||
url 'http://maven.tterrag.com/'
|
||||
}
|
||||
ivy {
|
||||
name "MineTweaker3"
|
||||
artifactPattern "http://minetweaker3.powerofbytes.com/download/[module]-[revision].[ext]"
|
||||
}
|
||||
maven {
|
||||
name = "gt"
|
||||
url = "http://downloads.gtnewhorizons.com/Mods_for_Jenkins/"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile "codechicken:CodeChickenLib:" + config.mc_version + "-" + config.cclib_version + ":dev"
|
||||
compile "codechicken:CodeChickenCore:" + config.mc_version + "-" + config.ccc_version + ":dev"
|
||||
compile "codechicken:NotEnoughItems:" + config.mc_version + "-" + config.nei_version + ":dev"
|
||||
compile name: 'MineTweaker3', version: config.minetweaker_version, ext: 'jar'
|
||||
compile "codechicken:ForgeMultipart:1.7.10-1.1.0.314:dev"
|
||||
compile "info.amerifrance.guideapi:Guide-API:" + config.mc_version + "-" + config.guideapi_version + ":deobf"
|
||||
compile fileTree(dir: 'libs', include: 'CraftTweaker-Dev-1.7.10-3.2.2-GTNH.4-legacy.jar')
|
||||
compile fileTree(dir: 'libs', include: 'Guide-API-1.7.10-1.0.1-20-deobf.jar')
|
||||
compile "codechicken:ForgeMultipart:1.7.10-1.1.0.314:dev"
|
||||
// compile "guideapi:Guide-API:" + config.mc_version + "-" + config.guideapi_version + ":deobf"
|
||||
compile "team.chisel:Chisel:" + config.chisel_version + ":api"
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
|
||||
minecraft {
|
||||
version = config.mc_version + "-" + config.forge_version
|
||||
runDir = "run"
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
#
|
||||
#Sun Jul 07 21:21:27 CEST 2019
|
||||
#Sun Nov 29 17:51:49 PST 2020
|
||||
mod_name=BloodMagic
|
||||
forge_version=10.13.4.1492-1.7.10
|
||||
forge_version=10.13.4.1614-1.7.10
|
||||
ccc_version=1.0.7.47
|
||||
cclib_version=1.1.3.138
|
||||
nei_version=1.0.5.111
|
||||
@@ -9,7 +9,7 @@ nei_version=1.0.5.111
|
||||
package_group=com.wayoftime.bloodmagic
|
||||
guideapi_version=1.0.1-20
|
||||
mod_version=1.3.3
|
||||
minetweaker_version=Dev-1.7.10-3.0.9B
|
||||
minetweaker_version=Dev-1.7.10-3.2.2-GTNH
|
||||
chisel_version=2.9.2.8
|
||||
build_number=30
|
||||
mc_version=1.7.10
|
||||
build_number=43
|
||||
Vendored
BIN
Binary file not shown.
+2
-2
@@ -1,6 +1,6 @@
|
||||
#Sat Jul 06 23:18:00 EEST 2019
|
||||
#Sat Jan 04 01:56:22 CET 2020
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,6 +13,7 @@ import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipInputStream;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.BlockStack;
|
||||
import WayofTime.alchemicalWizardry.common.summoning.meteor.Meteor;
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.AlchemicalPotionCreationHandler;
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipeRegistry;
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||
@@ -65,7 +66,6 @@ import WayofTime.alchemicalWizardry.common.spell.complex.effect.cse.ice.*;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.cse.wind.*;
|
||||
import WayofTime.alchemicalWizardry.common.spell.simple.*;
|
||||
import WayofTime.alchemicalWizardry.common.summoning.SummoningHelperAW;
|
||||
import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorRegistry;
|
||||
import WayofTime.alchemicalWizardry.common.thread.CommandDownloadGAPI;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.*;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.gui.GuiHandler;
|
||||
@@ -110,15 +110,6 @@ public class AlchemicalWizardry
|
||||
public static boolean parseTextFiles = false;
|
||||
|
||||
public static boolean doMeteorsDestroyBlocks = true;
|
||||
public static String[] diamondMeteorArray;
|
||||
public static int diamondMeteorRadius;
|
||||
public static String[] stoneMeteorArray;
|
||||
public static int stoneMeteorRadius;
|
||||
public static String[] ironBlockMeteorArray;
|
||||
public static int ironBlockMeteorRadius;
|
||||
public static String[] netherStarMeteorArray;
|
||||
public static int netherStarMeteorRadius;
|
||||
|
||||
public static String[] allowedCrushedOresArray;
|
||||
|
||||
public static Potion customPotionDrowning;
|
||||
@@ -889,10 +880,6 @@ public class AlchemicalWizardry
|
||||
|
||||
//Ore Dictionary Registration
|
||||
OreDictionary.registerOre("oreCoal", Blocks.coal_ore);
|
||||
MeteorRegistry.registerMeteorParadigm(diamondStack, diamondMeteorArray, diamondMeteorRadius);
|
||||
MeteorRegistry.registerMeteorParadigm(stoneStack, stoneMeteorArray, stoneMeteorRadius);
|
||||
MeteorRegistry.registerMeteorParadigm(ironBlockStack, ironBlockMeteorArray, ironBlockMeteorRadius);
|
||||
MeteorRegistry.registerMeteorParadigm(new ItemStack(Items.nether_star), netherStarMeteorArray, netherStarMeteorRadius);
|
||||
|
||||
ItemStack stickStack = new ItemStack(Items.stick, 1, craftingConstant);
|
||||
|
||||
@@ -1191,6 +1178,7 @@ public class AlchemicalWizardry
|
||||
BloodMagicConfiguration.loadCustomLPValues();
|
||||
|
||||
DemonVillageLootRegistry.init();
|
||||
Meteor.loadConfig();
|
||||
|
||||
this.initCompressionHandlers();
|
||||
|
||||
|
||||
@@ -103,15 +103,6 @@ public class BloodMagicConfiguration
|
||||
|
||||
MeteorParadigm.maxChance = config.get("meteor", "maxChance", 1000).getInt();
|
||||
AlchemicalWizardry.doMeteorsDestroyBlocks = config.get("meteor", "doMeteorsDestroyBlocks", true).getBoolean(true);
|
||||
AlchemicalWizardry.diamondMeteorArray = config.get("meteor", "diamondMeteor", new String[]{"oreDiamond", "100", "oreEmerald", "75", "oreCinnabar", "200", "oreAmber", "200"}).getStringList();
|
||||
AlchemicalWizardry.diamondMeteorRadius = config.get("meteor", "diamondMeteorRadius", 5).getInt();
|
||||
AlchemicalWizardry.stoneMeteorArray = config.get("meteor", "stoneBlockMeteor", new String[]{"oreCoal", "150", "oreApatite", "50", "oreIron", "50"}).getStringList();
|
||||
AlchemicalWizardry.stoneMeteorRadius = config.get("meteor", "stoneMeteorRadius", 16).getInt();
|
||||
AlchemicalWizardry.ironBlockMeteorArray = config.get("meteor", "ironBlockMeteor", new String[]{"oreIron", "400", "oreGold", "30", "oreCopper", "200", "oreTin", "140", "oreSilver", "70", "oreLead", "80", "oreLapis", "60", "oreRedstone", "100"}).getStringList();
|
||||
AlchemicalWizardry.ironBlockMeteorRadius = config.get("meteor", "ironBlockMeteorRadius", 7).getInt();
|
||||
AlchemicalWizardry.netherStarMeteorArray = config.get("meteor", "netherStarMeteor", new String[]{"oreDiamond", "150", "oreEmerald", "100", "oreQuartz", "250", "oreSunstone", "5", "oreMoonstone", "50", "oreIridium", "5", "oreCertusQuartz", "150"}).getStringList();
|
||||
AlchemicalWizardry.netherStarMeteorRadius = config.get("meteor", "netherStarMeteorRadius", 3).getInt();
|
||||
|
||||
AlchemicalWizardry.allowedCrushedOresArray = config.get("oreCrushing", "allowedOres", new String[]{"iron", "gold", "copper", "tin", "lead", "silver", "osmium"}).getStringList();
|
||||
|
||||
AlchemicalWizardry.wimpySettings = config.get("WimpySettings", "IDontLikeFun", false).getBoolean(false);
|
||||
|
||||
+38
-53
@@ -32,67 +32,52 @@ public class RitualEffectSummonMeteor extends RitualEffect
|
||||
int y = ritualStone.getYCoord();
|
||||
int z = ritualStone.getZCoord();
|
||||
|
||||
if (ritualStone.getCooldown() > 0)
|
||||
{
|
||||
if (ritualStone.getCooldown() > 0) {
|
||||
ritualStone.setCooldown(0);
|
||||
}
|
||||
|
||||
if (currentEssence < this.getCostPerRefresh())
|
||||
{
|
||||
EntityPlayer entityOwner = SpellHelper.getPlayerForUsername(owner);
|
||||
List<EntityItem> entities = world.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(x, y + 1, z, x + 1, y + 2, z + 1));
|
||||
|
||||
if (entityOwner == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (entities == null)
|
||||
return;
|
||||
|
||||
entityOwner.addPotionEffect(new PotionEffect(Potion.confusion.id, 80));
|
||||
} else
|
||||
{
|
||||
List<EntityItem> entities = world.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(x, y + 1, z, x + 1, y + 2, z + 1));
|
||||
for (EntityItem entityItem : entities) {
|
||||
if (entityItem != null && MeteorRegistry.isValidParadigmItem(entityItem.getEntityItem())) {
|
||||
int meteorID = MeteorRegistry.getParadigmIDForItem(entityItem.getEntityItem());
|
||||
int cost = MeteorRegistry.paradigmList.get(meteorID).cost;
|
||||
|
||||
if (entities == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (EntityItem entityItem : entities)
|
||||
{
|
||||
if (entityItem != null && MeteorRegistry.isValidParadigmItem(entityItem.getEntityItem()))
|
||||
{
|
||||
int meteorID = MeteorRegistry.getParadigmIDForItem(entityItem.getEntityItem());
|
||||
EntityMeteor meteor = new EntityMeteor(world, x + 0.5f, 257, z + 0.5f, meteorID);
|
||||
meteor.motionY = -1.0f;
|
||||
|
||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.terraeReagent, 1000, true))
|
||||
{
|
||||
meteor.hasTerrae = true;
|
||||
}
|
||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.orbisTerraeReagent, 1000, true))
|
||||
{
|
||||
meteor.hasOrbisTerrae = true;
|
||||
}
|
||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.crystallosReagent, 1000, true))
|
||||
{
|
||||
meteor.hasCrystallos = true;
|
||||
}
|
||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.incendiumReagent, 1000, true))
|
||||
{
|
||||
meteor.hasIncendium = true;
|
||||
}
|
||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.tenebraeReagent, 1000, true))
|
||||
{
|
||||
meteor.hasTennebrae = true;
|
||||
}
|
||||
|
||||
entityItem.setDead();
|
||||
world.spawnEntityInWorld(meteor);
|
||||
ritualStone.setActive(false);
|
||||
break;
|
||||
if (currentEssence < cost) {
|
||||
EntityPlayer entityOwner = SpellHelper.getPlayerForUsername(owner);
|
||||
if (entityOwner != null)
|
||||
entityOwner.addPotionEffect(new PotionEffect(Potion.confusion.id, 80));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
SoulNetworkHandler.syphonFromNetwork(owner, this.getCostPerRefresh());
|
||||
EntityMeteor meteor = new EntityMeteor(world, x + 0.5f, 257, z + 0.5f, meteorID);
|
||||
meteor.motionY = -1.0f;
|
||||
|
||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.terraeReagent, 1000, true)) {
|
||||
meteor.hasTerrae = true;
|
||||
}
|
||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.orbisTerraeReagent, 1000, true)) {
|
||||
meteor.hasOrbisTerrae = true;
|
||||
}
|
||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.crystallosReagent, 1000, true)) {
|
||||
meteor.hasCrystallos = true;
|
||||
}
|
||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.incendiumReagent, 1000, true)) {
|
||||
meteor.hasIncendium = true;
|
||||
}
|
||||
if (this.canDrainReagent(ritualStone, ReagentRegistry.tenebraeReagent, 1000, true)) {
|
||||
meteor.hasTennebrae = true;
|
||||
}
|
||||
|
||||
entityItem.setDead();
|
||||
world.spawnEntityInWorld(meteor);
|
||||
ritualStone.setActive(false);
|
||||
SoulNetworkHandler.syphonFromNetwork(owner, cost);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package WayofTime.alchemicalWizardry.common.summoning.meteor;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileReader;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class Meteor {
|
||||
public String[] ores;
|
||||
public int radius;
|
||||
public int cost;
|
||||
public String focusModId;
|
||||
public String focusName;
|
||||
public int focusMeta;
|
||||
|
||||
public static void loadConfig()
|
||||
{
|
||||
Gson gson = new GsonBuilder().setPrettyPrinting().create();
|
||||
File file = new File("config/BloodMagic/meteors");
|
||||
File[] files = file.listFiles();
|
||||
if (files != null) {
|
||||
try {
|
||||
for (File f : files) {
|
||||
BufferedReader br = new BufferedReader(new FileReader(f));
|
||||
Meteor m = gson.fromJson(br, Meteor.class);
|
||||
MeteorRegistry.registerMeteorParadigm(findItemStack(m.focusModId, m.focusName, m.focusMeta), m.ores, m.radius, m.cost);
|
||||
}
|
||||
}
|
||||
catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static ItemStack findItemStack(String modid, String name, int meta) {
|
||||
ItemStack is = GameRegistry.findItemStack(modid, name, 1);
|
||||
if (is == null)
|
||||
return null;
|
||||
Items.feather.setDamage(is, meta);
|
||||
return is;
|
||||
}
|
||||
}
|
||||
+4
-2
@@ -12,17 +12,19 @@ import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||
|
||||
public class MeteorParadigm
|
||||
{
|
||||
public List<MeteorParadigmComponent> componentList = new ArrayList();
|
||||
public List<MeteorParadigmComponent> componentList = new ArrayList<>();
|
||||
public ItemStack focusStack;
|
||||
public int radius;
|
||||
public int cost;
|
||||
public static int maxChance = 1000;
|
||||
|
||||
public static Random rand = new Random();
|
||||
|
||||
public MeteorParadigm(ItemStack focusStack, int radius)
|
||||
public MeteorParadigm(ItemStack focusStack, int radius, int cost)
|
||||
{
|
||||
this.focusStack = focusStack;
|
||||
this.radius = radius;
|
||||
this.cost = cost;
|
||||
}
|
||||
|
||||
public void parseStringArray(String[] oreArray)
|
||||
|
||||
+3
-3
@@ -9,18 +9,18 @@ import java.util.List;
|
||||
|
||||
public class MeteorRegistry
|
||||
{
|
||||
public static List<MeteorParadigm> paradigmList = new ArrayList();
|
||||
public static List<MeteorParadigm> paradigmList = new ArrayList<>();
|
||||
|
||||
public static void registerMeteorParadigm(MeteorParadigm paradigm)
|
||||
{
|
||||
paradigmList.add(paradigm);
|
||||
}
|
||||
|
||||
public static void registerMeteorParadigm(ItemStack stack, String[] oreList, int radius)
|
||||
public static void registerMeteorParadigm(ItemStack stack, String[] oreList, int radius, int cost)
|
||||
{
|
||||
if (stack != null && oreList != null)
|
||||
{
|
||||
MeteorParadigm meteor = new MeteorParadigm(stack, radius);
|
||||
MeteorParadigm meteor = new MeteorParadigm(stack, radius, cost);
|
||||
meteor.parseStringArray(oreList);
|
||||
paradigmList.add(meteor);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import static WayofTime.alchemicalWizardry.common.tweaker.MTHelper.toObjects;
|
||||
import static WayofTime.alchemicalWizardry.common.tweaker.MTHelper.toShapedObjects;
|
||||
import static WayofTime.alchemicalWizardry.common.tweaker.MTHelper.toStack;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.items.ShapelessBloodOrbRecipe;
|
||||
@@ -24,16 +25,30 @@ import WayofTime.alchemicalWizardry.api.items.ShapedBloodOrbRecipe;
|
||||
@ZenClass("mods.bloodmagic.BloodOrb")
|
||||
public class BloodOrb
|
||||
{
|
||||
public static List<IUndoableAction> lateAdditions = new ArrayList<>();
|
||||
public static List<IUndoableAction> lateRemovals = new ArrayList<>();
|
||||
|
||||
public static void applyAdditionsAndRemovals() {
|
||||
for (IUndoableAction toRemove : lateRemovals) {
|
||||
MineTweakerAPI.apply(toRemove);
|
||||
}
|
||||
for (IUndoableAction toAdd : lateAdditions) {
|
||||
MineTweakerAPI.apply(toAdd);
|
||||
}
|
||||
|
||||
lateAdditions.clear();
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void addShaped(IItemStack output, IIngredient[][] ingredients)
|
||||
{
|
||||
MineTweakerAPI.apply(new Add(false, toStack(output), toShapedObjects(ingredients)));
|
||||
lateAdditions.add(new Add(false, toStack(output), toShapedObjects(ingredients)));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void addShapeless(IItemStack output, IIngredient[] ingredients)
|
||||
{
|
||||
MineTweakerAPI.apply(new Add(true, toStack(output), toObjects(ingredients)));
|
||||
lateAdditions.add((new Add(true, toStack(output), toObjects(ingredients))));
|
||||
}
|
||||
|
||||
private static class Add implements IUndoableAction {
|
||||
@@ -89,7 +104,7 @@ public class BloodOrb
|
||||
|
||||
@ZenMethod
|
||||
public static void removeRecipe(IItemStack output) {
|
||||
MineTweakerAPI.apply(new Remove(toStack(output)));
|
||||
lateRemovals.add(new Remove(toStack(output)));
|
||||
}
|
||||
|
||||
private static class Remove implements IUndoableAction {
|
||||
@@ -111,7 +126,6 @@ public class BloodOrb
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
CraftingManager.getInstance().getRecipeList().remove(iRecipe);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,13 +23,25 @@ public class FallingTower
|
||||
@ZenMethod
|
||||
public static void addFocus(IItemStack stack, int radius, String[] components)
|
||||
{
|
||||
MineTweakerAPI.apply(new Add(toStack(stack),radius, components));
|
||||
MineTweakerAPI.apply(new Add(toStack(stack),radius,10000, components));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void addFocus(IItemStack stack, int radius, String components)
|
||||
{
|
||||
MineTweakerAPI.apply(new Add(toStack(stack),radius, components.split("\\s*,\\s*")));
|
||||
MineTweakerAPI.apply(new Add(toStack(stack), radius, 10000, components.split("\\s*,\\s*")));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void addFocus(IItemStack stack, int radius, int cost, String[] components)
|
||||
{
|
||||
MineTweakerAPI.apply(new Add(toStack(stack), radius, cost, components));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void addFocus(IItemStack stack, int radius, int cost, String components)
|
||||
{
|
||||
MineTweakerAPI.apply(new Add(toStack(stack),radius, cost, components.split("\\s*,\\s*")));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
@@ -41,9 +53,9 @@ public class FallingTower
|
||||
{
|
||||
private MeteorParadigm paradigm;
|
||||
|
||||
public Add(ItemStack stack, int radius, String[] components)
|
||||
public Add(ItemStack stack, int radius, int cost, String[] components)
|
||||
{
|
||||
paradigm = new MeteorParadigm(stack,radius);
|
||||
paradigm = new MeteorParadigm(stack, radius, cost);
|
||||
paradigm.parseStringArray(components);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package WayofTime.alchemicalWizardry.common.tweaker;
|
||||
|
||||
import minetweaker.MineTweakerAPI;
|
||||
import minetweaker.MineTweakerImplementationAPI;
|
||||
import minetweaker.util.IEventHandler;
|
||||
|
||||
/**
|
||||
* MineTweaker3 Integration by joshie *
|
||||
@@ -15,5 +17,18 @@ public class MineTweakerIntegration
|
||||
MineTweakerAPI.registerClass(BloodOrb.class);
|
||||
MineTweakerAPI.registerClass(FallingTower.class);
|
||||
MineTweakerAPI.registerClass(HarvestMoon.class);
|
||||
|
||||
MineTweakerImplementationAPI.onRollbackEvent(new HandleLateAdditionsAndRemovals());
|
||||
MineTweakerImplementationAPI.onPostReload(new HandleLateAdditionsAndRemovals());
|
||||
}
|
||||
public static class HandleLateAdditionsAndRemovals implements IEventHandler<MineTweakerImplementationAPI.ReloadEvent>
|
||||
{
|
||||
@Override
|
||||
public void handle(MineTweakerImplementationAPI.ReloadEvent event)
|
||||
{
|
||||
BloodOrb.applyAdditionsAndRemovals();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user