mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
run repo through formatter
This commit is contained in:
1 parent
5585d680a3
commit
ffaea7d4b7
140 files changed
+1050
-892
No files matched your search
@@ -6,25 +6,30 @@ import net.minecraft.item.*;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import tconstruct.achievements.TAchievements;
|
||||
|
||||
public class SlotFrypan extends 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){
|
||||
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);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user