-
Notifications
You must be signed in to change notification settings - Fork 755
/
SlotFrypan.java
33 lines (27 loc) · 1.01 KB
/
SlotFrypan.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package tconstruct.tools.inventory;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
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);
}
}*/
}