Skip to content

Commit 163e463

Browse files
author
Jacky1356400
committed
2.1.2 Update
- Fixed a few things for config file - Moved TE buckets to TE integration class - Minor code cleanups - Updated mappings and Forge
1 parent a742dba commit 163e463

File tree

8 files changed

+26
-27
lines changed

8 files changed

+26
-27
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ compileJava {
2222
minecraft {
2323
version = "${mc_version}-${forge_version}"
2424
runDir = "run"
25-
mappings = "snapshot_20170705"
25+
mappings = "${mappings_version}"
2626
}
2727

2828
repositories {

gradle.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
# This is required to provide enough memory for the Minecraft decompilation process.
33
org.gradle.jvmargs=-Xmx4G
44
mc_version=1.12
5-
forge_version=14.21.1.2396
6-
mod_version=2.1.1
5+
forge_version=14.21.1.2406
6+
mod_version=2.1.2
7+
mappings_version=snapshot_20170710

src/main/java/me/jacky1356400/exchangers/Config.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ private static void initConfig(Configuration cfg) {
103103
cfg.addCustomCategoryComment(CATEGORY_RECIPES,
104104
"Progressive recipes - requires the previous tier to craft the next tier exchanger, which means more expensive.");
105105
vanillaProgressiveRecipes = cfg.getBoolean("Vanilla Progressive Recipes", CATEGORY_RECIPES, true,
106-
"[Not implemented!] If true, enables progressive recipes for vanilla-based exchangers.");
106+
"If true, enables progressive recipes for vanilla-based exchangers.");
107107
enderIOProgressiveRecipes = cfg.getBoolean("Ender IO Progressive Recipes", CATEGORY_RECIPES, true,
108108
"[Not implemented!] If true, enables progressive recipes for Ender IO-based exchangers.");
109109
thermalExpansionProgressiveRecipes = cfg.getBoolean("Thermal Expansion Progressive Recipes", CATEGORY_RECIPES,
110-
true, "[Not implemented!] If true, enables progressive recipes for Thermal Expansion-based exchangers.");
110+
true, "If true, enables progressive recipes for Thermal Expansion-based exchangers.");
111111
mekanismProgressiveRecipes = cfg.getBoolean("Mekanism Progressive Recipes", CATEGORY_RECIPES, true,
112-
"If true, enables progressive recipes for Mekanism-based exchangers.");
112+
"[Not implemented!] If true, enables progressive recipes for Mekanism-based exchangers.");
113113

114114
//Vanilla Tweaks
115115
cfg.addCustomCategoryComment(CATEGORY_TWEAKS_VANILLA, "Vanilla Exchanger Tweaks");
@@ -156,7 +156,7 @@ private static void initConfig(Configuration cfg) {
156156
10000, "Set the RF consumption per block for Vibrant Exchanger");
157157

158158
//Thermal Expansion Tweaks
159-
cfg.addCustomCategoryComment(CATEGORY_TWEAKS_TE, "[Not implemented!] Thermal Expansion Exchanger Tweaks");
159+
cfg.addCustomCategoryComment(CATEGORY_TWEAKS_TE, "Thermal Expansion Exchanger Tweaks");
160160
leadstoneMaxEnergy = cfg.getInt("Leadstone Exchanger Capacity", CATEGORY_TWEAKS_TE, 80000, 1000, 100000000,
161161
"Set the RF capacity for Leadstone Exchanger");
162162
leadstonePerBlockUse = cfg.getInt("Leadstone Exchanger Power Consumption", CATEGORY_TWEAKS_TE, 10, 1,

src/main/java/me/jacky1356400/exchangers/init/ModRegistry.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@
1212
import net.minecraft.block.Block;
1313
import net.minecraft.init.Items;
1414
import net.minecraft.item.Item;
15-
import net.minecraft.item.ItemStack;
1615
import net.minecraft.item.crafting.IRecipe;
1716
import net.minecraftforge.event.RegistryEvent;
18-
import net.minecraftforge.fluids.Fluid;
19-
import net.minecraftforge.fluids.FluidRegistry;
20-
import net.minecraftforge.fluids.FluidStack;
21-
import net.minecraftforge.fluids.FluidUtil;
2217
import net.minecraftforge.fml.common.Loader;
2318
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
2419

20+
import static me.jacky1356400.exchangers.integration.ThermalExpansionIntegration.*;
21+
2522
public class ModRegistry {
2623

2724
public static final Item WOODEN = new ItemExchanger("exwooden", Tier.ONE, Config.woodMaxDmg);
@@ -45,10 +42,6 @@ public class ModRegistry {
4542
public static final Item TECORE_2 = new ItemBasic("teexcore_t2");
4643
public static final Item TECORE_3 = new ItemBasic("teexcore_t3");
4744

48-
public static ItemStack bucketResonantEnder;
49-
public static ItemStack bucketEnergizedGlowstone;
50-
public static ItemStack bucketGelidCryotheum;
51-
5245
@SuppressWarnings("deprecation")
5346
private static void initRecipes() {
5447
if (Config.vanillaModule = true) {
@@ -126,13 +119,6 @@ private static void initRecipes() {
126119
'C', TECORE_3);
127120
}
128121

129-
Fluid ender = FluidRegistry.getFluid("ender");
130-
bucketResonantEnder = FluidUtil.getFilledBucket(new FluidStack(ender, 1000));
131-
Fluid glowstone = FluidRegistry.getFluid("glowstone");
132-
bucketEnergizedGlowstone = FluidUtil.getFilledBucket(new FluidStack(glowstone, 1000));
133-
Fluid cryotheum = FluidRegistry.getFluid("cryotheum");
134-
bucketGelidCryotheum = FluidUtil.getFilledBucket(new FluidStack(cryotheum, 1000));
135-
136122
RecipeHelper.addOldShaped(TECORE_1, "CLC", "LRL", "CLC", 'C', "gearCopper", 'L', "ingotLead",
137123
'R', bucketResonantEnder);
138124
RecipeHelper.addOldShaped(TECORE_2, "BIB", "CGC", "BIB", 'B', "gearBronze", 'I', "gearInvar",'C',

src/main/java/me/jacky1356400/exchangers/integration/ThermalExpansionIntegration.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
import net.minecraft.item.Item;
55
import net.minecraft.item.ItemStack;
66
import net.minecraft.util.ResourceLocation;
7+
import net.minecraftforge.fluids.Fluid;
8+
import net.minecraftforge.fluids.FluidRegistry;
9+
import net.minecraftforge.fluids.FluidStack;
10+
import net.minecraftforge.fluids.FluidUtil;
711

812
public class ThermalExpansionIntegration {
913

@@ -16,6 +20,9 @@ public class ThermalExpansionIntegration {
1620
public static ItemStack redstoneReceptionCoil;
1721
public static ItemStack redstoneTransmissionCoil;
1822
public static ItemStack redstoneConductanceCoil;
23+
public static ItemStack bucketResonantEnder;
24+
public static ItemStack bucketEnergizedGlowstone;
25+
public static ItemStack bucketGelidCryotheum;
1926

2027
public static void init() {
2128
Exchangers.logger.info("Fetching items for Thermal Expansion integration...");
@@ -37,6 +44,13 @@ public static void init() {
3744
redstoneConductanceCoil = new ItemStack(teMaterialsItem, 1, 515);
3845
}
3946

47+
Fluid ender = FluidRegistry.getFluid("ender");
48+
bucketResonantEnder = FluidUtil.getFilledBucket(new FluidStack(ender, 1000));
49+
Fluid glowstone = FluidRegistry.getFluid("glowstone");
50+
bucketEnergizedGlowstone = FluidUtil.getFilledBucket(new FluidStack(glowstone, 1000));
51+
Fluid cryotheum = FluidRegistry.getFluid("cryotheum");
52+
bucketGelidCryotheum = FluidUtil.getFilledBucket(new FluidStack(cryotheum, 1000));
53+
4054
}
4155

4256
}

src/main/java/me/jacky1356400/exchangers/proxy/CommonProxy.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
import me.jacky1356400.exchangers.handler.network.PacketHandler;
88
import me.jacky1356400.exchangers.helper.DirectionHelper;
99
import me.jacky1356400.exchangers.init.ModRegistry;
10-
import me.jacky1356400.exchangers.integration.ThermalExpansionIntegration;
1110
import me.jacky1356400.exchangers.item.ItemExchanger;
1211
import me.jacky1356400.exchangers.util.Data;
1312
import net.minecraftforge.common.MinecraftForge;
1413
import net.minecraftforge.common.config.Configuration;
15-
import net.minecraftforge.fml.common.Loader;
1614
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
1715
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
1816
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

src/main/java/me/jacky1356400/exchangers/util/Data.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class Data {
1818
public static final String EIO = "enderio";
1919
public static final String MEK = "mekanism";
2020
public static final String THERMAL = "thermalexpansion";
21-
public static final String VERSION = "1.12-2.1.1";
21+
public static final String VERSION = "1.12-2.1.2";
2222
public static final String MODID = "exchangers";
2323
public static final String MODNAME = "Exchangers";
2424
public static final CreativeTabs TAB = new CreativeTabs(MODID) {

src/main/resources/mcmod.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"modid": "exchangers",
44
"name": "Exchangers",
55
"description": "Block Exchangers.",
6-
"version": "1.12-2.1.1",
6+
"version": "1.12-2.1.2",
77
"mcversion": "1.12",
88
"url": "https://github.com/Jacky1356400/Exchangers",
99
"updateUrl": "",

0 commit comments

Comments
 (0)