mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-24 05:50:04 +02:00
34 lines
740 B
Java
34 lines
740 B
Java
package de.ellpeck.actuallyadditions.common.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 boolean isItemValid(ItemStack stack) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public void putStack(ItemStack stack) {
|
|
|
|
}
|
|
|
|
@Override
|
|
public ItemStack decrStackSize(int i) {
|
|
return ItemStack.EMPTY;
|
|
}
|
|
|
|
@Override
|
|
public boolean canTakeStack(EntityPlayer player) {
|
|
return false;
|
|
}
|
|
}
|