mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-11 01:30:23 +02:00
24 lines
555 B
Java
24 lines
555 B
Java
package ellpeck.actuallyadditions.manual;
|
|
|
|
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 boolean canTakeStack(EntityPlayer player){
|
|
return false;
|
|
}
|
|
}
|