1.7.10 Port

Initial 1.7.10 Port. Everything seems to be working, but can't be tested
without access to Thaumcraft.
Got rid of Forestrys Item/BlockInterfaces and created my own.
Started to use @Optional.Interface
Implemented @Pahimar s LogHelper to deal with log4j
Changed localization system to use the vanilla one
This commit is contained in:
Arkandos committed 2014-08-01 04:05:49 +02:00
1 parent 5b053dd990
commit d3c6ad5433
28 files changed
+1581 -771

No files matched your search

@@ -0,0 +1,27 @@
package magicbees.item;
import forestry.core.items.ItemForestryBlock;
import magicbees.block.types.HiveType;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
/**
* Created by Allen on 7/29/2014.
*/
public class ItemMagicHive extends ItemForestryBlock {
public ItemMagicHive(Block block) {
super(block);
}
@Override
public String getUnlocalizedName(ItemStack itemstack) {
return getBlock().getUnlocalizedName() + "." + HiveType.getHiveFromMeta(itemstack.getItemDamage()).name().toLowerCase();
}
@Override
public String getItemStackDisplayName(ItemStack p_77653_1_)
{
return ("" + StatCollector.translateToLocal(this.getUnlocalizedNameInefficiently(p_77653_1_) + ".name")).trim();
}
}