Skip to content

Commit

Permalink
Backport pt.2
Browse files Browse the repository at this point in the history
- Removed Proxy logger
- Tweaked config
- Corrected tier text
- Removed unused IEnergyStorage capability inject
  • Loading branch information
Jacky1356400 committed Jul 10, 2017
1 parent 521679b commit d49ad74
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 25 deletions.
8 changes: 4 additions & 4 deletions src/main/java/me/jacky1356400/exchangers/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ private static void initConfig(Configuration cfg) {
cfg.addCustomCategoryComment(CATEGORY_RECIPES,
"Progressive recipes - requires the previous tier to craft the next tier exchanger, which means more expensive.");
vanillaProgressiveRecipes = cfg.getBoolean("Vanilla Progressive Recipes", CATEGORY_RECIPES, true,
"[Not implemented!] If true, enables progressive recipes for vanilla-based exchangers.");
"If true, enables progressive recipes for vanilla-based exchangers.");
enderIOProgressiveRecipes = cfg.getBoolean("Ender IO Progressive Recipes", CATEGORY_RECIPES, true,
"[Not implemented!] If true, enables progressive recipes for Ender IO-based exchangers.");
"If true, enables progressive recipes for Ender IO-based exchangers.");
thermalExpansionProgressiveRecipes = cfg.getBoolean("Thermal Expansion Progressive Recipes", CATEGORY_RECIPES,
true, "[Not implemented!] If true, enables progressive recipes for Thermal Expansion-based exchangers.");
true, "If true, enables progressive recipes for Thermal Expansion-based exchangers.");
mekanismProgressiveRecipes = cfg.getBoolean("Mekanism Progressive Recipes", CATEGORY_RECIPES, true,
"If true, enables progressive recipes for Mekanism-based exchangers.");

Expand All @@ -129,7 +129,7 @@ private static void initConfig(Configuration cfg) {
"Set the durability for Obsidian Exchanger");

//Ender IO Tweaks
cfg.addCustomCategoryComment(CATEGORY_TWEAKS_EIO, "[Not implemented!] Ender IO Exchanger Tweaks");
cfg.addCustomCategoryComment(CATEGORY_TWEAKS_EIO, "Ender IO Exchanger Tweaks");
conductiveMaxEnergy = cfg.getInt("Conductive Iron Exchanger Capacity", CATEGORY_TWEAKS_EIO, 80000,
1000, 100000000, "Set the RF capacity for Conductive Iron Exchanger");
conductivePerBlockUse = cfg.getInt("Conductive Iron Exchanger Power Consumption",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.capabilities.CapabilityInject;
import net.minecraftforge.energy.IEnergyStorage;

public class EnergyHelper {

@CapabilityInject (IEnergyStorage.class)

public static ItemStack setDefaultEnergyTag(ItemStack container, int energy) {

if (!container.hasTagCompound()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getSubItems(@Nonnull Item item, CreativeTabs tab, NonNullList<ItemSt
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(3));
tooltip.add(StringHelper.getTierText(5));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getSubItems(@Nonnull Item item, CreativeTabs tab, NonNullList<ItemSt
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(2));
tooltip.add(StringHelper.getTierText(3));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getSubItems(@Nonnull Item item, CreativeTabs tab, NonNullList<ItemSt
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(2));
tooltip.add(StringHelper.getTierText(4));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getSubItems(@Nonnull Item item, CreativeTabs tab, NonNullList<ItemSt
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(1));
tooltip.add(StringHelper.getTierText(2));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getSubItems(@Nonnull Item item, CreativeTabs tab, NonNullList<ItemSt
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(3));
tooltip.add(StringHelper.getTierText(6));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getSubItems(@Nonnull Item item, CreativeTabs tab, NonNullList<ItemSt
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(3));
tooltip.add(StringHelper.getTierText(4));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getSubItems(@Nonnull Item item, CreativeTabs tab, NonNullList<ItemSt
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(1));
tooltip.add(StringHelper.getTierText(2));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getSubItems(@Nonnull Item item, CreativeTabs tab, NonNullList<ItemSt
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(2));
tooltip.add(StringHelper.getTierText(3));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getSubItems(@Nonnull Item item, CreativeTabs tab, NonNullList<ItemSt
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(3));
tooltip.add(StringHelper.getTierText(5));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getSubItems(@Nonnull Item item, CreativeTabs tab, NonNullList<ItemSt
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(3));
tooltip.add(StringHelper.getTierText(4));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void initModel() {
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(3));
tooltip.add(StringHelper.getTierText(5));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void initModel() {
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(3));
tooltip.add(StringHelper.getTierText(6));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void initModel() {
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(2));
tooltip.add(StringHelper.getTierText(3));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void initModel() {
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(2));
tooltip.add(StringHelper.getTierText(4));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void initModel() {
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(3));
tooltip.add(StringHelper.getTierText(7));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void initModel() {
@SuppressWarnings("unchecked")
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean bool) {
super.addInformation(stack, player, tooltip, bool);
tooltip.add(StringHelper.getTierText(1));
tooltip.add(StringHelper.getTierText(2));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public void preInit(FMLPreInitializationEvent e){
}

public void init(FMLInitializationEvent e){
Exchangers.logger.info("proxy");
MinecraftForge.EVENT_BUS.register(new RenderOverlayHandler());
MinecraftForge.EVENT_BUS.register(new WorldEventHandler());
}
Expand Down

0 comments on commit d49ad74

Please sign in to comment.