GT5-Unofficial/src/main/java/gregtech/common/items/armor/SlotLocked.java
2016-06-21 18:50:29 +02:00

33 lines
773 B
Java

package gregtech.common.items.armor;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class SlotLocked extends Slot{
public SlotLocked(IInventory par1iInventory, int par2, int par3, int par4) {
super(par1iInventory, par2, par3, par4);
}
@Override
public void onPickupFromSlot(EntityPlayer player, ItemStack itemStack) {
}
@Override
public boolean isItemValid(ItemStack par1ItemStack) {
return false;
}
@Override
public boolean getHasStack() {
return false;
}
@Override
public ItemStack decrStackSize(int i) {
return null;
}
@Override
public boolean canTakeStack(EntityPlayer stack) {
return false;}
}