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 TypeMethodDescriptionbooleanallowModification(Player p_307532_) 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 p_307668_, ItemStack p_307399_) if newStack has more items than oldStack, onQuickCraft(stack, amount) is calledvoidremove(int p_307370_) Decrease the size of the stack in the slot by the amount specified.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:Slotif newStack has more items than oldStack, onQuickCraft(stack, amount) is called- Overrides:
onQuickCraftin classSlot
-
mayPickup
Description copied from class:SlotReturn whether this slot's stack can be taken from this slot. -
tryRemove
-
safeTake
-
safeInsert
- Overrides:
safeInsertin classSlot
-
safeInsert
- Overrides:
safeInsertin classSlot
-
allowModification
- Overrides:
allowModificationin classSlot
-
mayPlace
Description copied from class:SlotCheck 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:SlotDecrease the size of the stack in the slot by the amount specified. Returns the new stack. -
onTake
-
isHighlightable
public boolean isHighlightable()- Overrides:
isHighlightablein classSlot
-
isFake
public boolean isFake()
-