Reorganize folders for modules

This commit is contained in:
mDiyo committed 2014-06-04 21:44:48 -08:00
1 parent 2c14f315de
commit e2f0558b6f
370 files changed
+4274 -4788

No files matched your search

@@ -0,0 +1,37 @@
package tconstruct.tools.inventory;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import tconstruct.achievements.TAchievements;
public class SlotFrypan extends Slot
{
public EntityPlayer player;
public SlotFrypan(IInventory par1IInventory, int par2, int par3, int par4, EntityPlayer player)
{
super(par1IInventory, par2, par3, par4);
this.player = player;
}
@Override
public void putStack (ItemStack par1ItemStack)
{
super.putStack(par1ItemStack);
if (par1ItemStack != null && par1ItemStack.getItem() != null && par1ItemStack.getItem() instanceof ItemFood && par1ItemStack.hasTagCompound())
{
NBTTagCompound stackTagCompound = par1ItemStack.getTagCompound();
if (stackTagCompound == null || !stackTagCompound.getBoolean("frypanKill"))
{
return;
}
player.addStat(TAchievements.achievements.get("tconstruct:dualConvenience"), 1);
}
}
}