mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
* Fix shift-merging tools voiding items fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11392> * Change 0-sized ItemStacks into null stacks in crafting station attached slots Fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10425> * Update buildscript * spotlessApply
29 lines
742 B
Java
29 lines
742 B
Java
package tconstruct.armor.inventory;
|
|
|
|
import net.minecraft.inventory.*;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public class SlotUnused extends Slot {
|
|
public SlotUnused(IInventory par2IInventory, int par3, int par4, int par5) {
|
|
super(par2IInventory, par3, par4, par5);
|
|
}
|
|
|
|
/**
|
|
* Returns the maximum stack size for a given slot (usually the same as
|
|
* getInventoryStackLimit(), but 1 in the case of armor slots)
|
|
*/
|
|
@Override
|
|
public int getSlotStackLimit() {
|
|
return 0;
|
|
}
|
|
|
|
/**
|
|
* Check if the stack is a valid item for this slot. Always true beside for
|
|
* the armor slots.
|
|
*/
|
|
@Override
|
|
public boolean isItemValid(ItemStack par1ItemStack) {
|
|
return false;
|
|
}
|
|
}
|