Package net.minecraft.world.inventory
Class NonInteractiveResultSlot
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.world.inventory.NonInteractiveResultSlot
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionNonInteractiveResultSlot
(Container p_307372_, int p_307687_, int p_307440_, int p_307347_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
allowModification
(Player p_307532_) boolean
isFake()
boolean
boolean
Return whether this slot's stack can be taken from this slot.boolean
Check if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.void
onQuickCraft
(ItemStack p_307668_, ItemStack p_307399_) if par2 has more items than par1, onCrafting(item,countIncrease) is calledvoid
remove
(int p_307370_) Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.safeInsert
(ItemStack p_307685_) safeInsert
(ItemStack p_307656_, int p_307278_) Methods inherited from class net.minecraft.world.inventory.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:Slot
if par2 has more items than par1, onCrafting(item,countIncrease) is called- Overrides:
onQuickCraft
in classSlot
-
mayPickup
Description copied from class:Slot
Return whether this slot's stack can be taken from this slot. -
tryRemove
-
safeTake
-
safeInsert
- Overrides:
safeInsert
in classSlot
-
safeInsert
- Overrides:
safeInsert
in classSlot
-
allowModification
- Overrides:
allowModification
in classSlot
-
mayPlace
Description copied from class:Slot
Check if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel. -
remove
Description copied from class:Slot
Decrease the size of the stack in slot (first int arg) by the amount of the second int arg. Returns the new stack. -
onTake
-
isHighlightable
public boolean isHighlightable()- Overrides:
isHighlightable
in classSlot
-
isFake
public boolean isFake()
-