updated and pulled back mcpMappings

This commit is contained in:
Mohammad-Ali Minaie
2018-09-23 20:42:50 -04:00
parent 432239c820
commit 73a9bef667
2 changed files with 12 additions and 2 deletions

View File

@@ -31,11 +31,18 @@ public class ModInfo {
/** Creative Tabs **/
public static CreativeTabs TAB_FORGECRAFT = new CreativeTabs(MOD_ID)
{
/*@Override
@SideOnly(Side.CLIENT)
public ItemStack createIcon() {
return new ItemStack(ModItems.forgehammer);
}*/
@Override
@SideOnly(Side.CLIENT)
public ItemStack getTabIconItem() {
return new ItemStack(ModItems.forgehammer);
}
};
// ***************************************************************************** //

View File

@@ -60,7 +60,7 @@ public class SlottedTongs extends Item implements IPickup, AnvilHandler{
//public static CapabilityItemHandler ITEM_HANDLER;
public SlottedTongs(String unlocalizedName) {
setUnlocalizedName(unlocalizedName);
this.setUnlocalizedName(unlocalizedName);
this.setRegistryName(unlocalizedName);
this.setMaxStackSize(1);
this.setCreativeTab(ModInfo.TAB_FORGECRAFT);
@@ -71,10 +71,13 @@ public class SlottedTongs extends Item implements IPickup, AnvilHandler{
public float apply(ItemStack stack, @Nullable World worldIn, @Nullable EntityLivingBase entityIn)
{
IItemHandler inventory = stack.getCapability(ITEM_HANDLER, null);
ItemStack slotStack = inventory.getStackInSlot(0);
if(stack.getTagCompound() != null){
System.out.println(slotStack);
}
//System.out.println(slotStack);
if (stack.getItem() instanceof SlottedTongs) {