Class NonInteractiveResultSlot
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.world.inventory.NonInteractiveResultSlot
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowModification(Player player) booleanisFake()booleanbooleanReturn whether this slot's stack can be taken from this slot.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.voidonQuickCraft(ItemStack picked, ItemStack original) if par2 has more items than par1, onCrafting(item,countIncrease) is calledvoidremove(int amount) Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.safeInsert(ItemStack stack) safeInsert(ItemStack inputStack, int inputAmount) Methods inherited from class Slot
checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isSameInventory, onQuickCraft, onSwapCraft, set, setBackground, setByPlayer, setByPlayer, setChanged
-
Constructor Details
-
NonInteractiveResultSlot
-
-
Method Details
-
onQuickCraft
Description copied from class:Slotif par2 has more items than par1, onCrafting(item,countIncrease) is called- Overrides:
onQuickCraftin classSlot
-
mayPickup
-
tryRemove
-
safeTake
-
safeInsert
- Overrides:
safeInsertin classSlot
-
safeInsert
- Overrides:
safeInsertin classSlot
-
allowModification
- Overrides:
allowModificationin classSlot
-
mayPlace
-
remove
-
onTake
-
isHighlightable
public boolean isHighlightable()- Overrides:
isHighlightablein classSlot
-
isFake
-