mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-02 14:03:37 +02:00
44 lines
1 KiB
Java
44 lines
1 KiB
Java
/*
|
|
* 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://ellpeck.de/actaddlicense
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
*
|
|
* © 2015-2017 Ellpeck
|
|
*/
|
|
|
|
package de.ellpeck.actuallyadditions.mod.inventory.slot;
|
|
|
|
import net.minecraft.entity.player.PlayerEntity;
|
|
import net.minecraft.inventory.IInventory;
|
|
import net.minecraft.inventory.container.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 mayPlace(ItemStack stack) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public void set(ItemStack stack) {
|
|
|
|
}
|
|
|
|
@Override
|
|
public ItemStack remove(int i) {
|
|
return ItemStack.EMPTY;
|
|
}
|
|
|
|
@Override
|
|
public boolean mayPickup(PlayerEntity player) {
|
|
return false;
|
|
}
|
|
}
|