ActuallyAdditions/src/main/java/ellpeck/actuallyadditions/inventory/slot/SlotImmovable.java

34 lines
713 B
Java
Raw Normal View History

2015-06-21 02:28:49 +02:00
package ellpeck.actuallyadditions.inventory.slot;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class SlotImmovable extends Slot{
public SlotImmovable(IInventory inventory, int id, int x, int y){
super(inventory, id, x, y);
}
@Override
public void putStack(ItemStack stack){
}
@Override
public ItemStack decrStackSize(int i){
return null;
}
2015-06-21 02:28:49 +02:00
@Override
public boolean canTakeStack(EntityPlayer player){
return false;
}
@Override
public boolean isItemValid(ItemStack stack){
return false;
}
}