2015-08-29 14:33:25 +02:00
|
|
|
|
/*
|
|
|
|
|
* This file ("SlotImmovable.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
|
*
|
|
|
|
|
* <EFBFBD> 2015 Ellpeck
|
|
|
|
|
*/
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-03 10:19:40 +02:00
|
|
|
|
@Override
|
|
|
|
|
public boolean isItemValid(ItemStack stack){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-12 01:22:47 +02:00
|
|
|
|
@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;
|
|
|
|
|
}
|
|
|
|
|
}
|