blob: b54d8d1027046243b544fc9ba8430c9fa3f39169 (
plain)
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 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;}
}
|