Class ResultSlot
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.world.inventory.ResultSlot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CraftingContainerprivate final Playerprivate int -
Constructor Summary
ConstructorsConstructorDescriptionResultSlot(Player player, CraftingContainer craftSlots, Container container, int id, int x, int y) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckTakeAchievements(ItemStack carried) private static NonNullList<ItemStack> copyAllInputItems(CraftingInput input) private NonNullList<ItemStack> getRemainingItems(CraftingInput input, Level level) booleanisFake()booleanprotected voidonQuickCraft(ItemStack picked, int count) protected voidonSwapCraft(int count) voidremove(int amount) Methods inherited from class Slot
allowModification, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isHighlightable, isSameInventory, mayPickup, onQuickCraft, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove
-
Field Details
-
craftSlots
-
player
-
removeCount
private int removeCount
-
-
Constructor Details
-
ResultSlot
public ResultSlot(Player player, CraftingContainer craftSlots, Container container, int id, int x, int y)
-
-
Method Details
-
mayPlace
-
remove
-
onQuickCraft
- Overrides:
onQuickCraftin classSlot
-
onSwapCraft
protected void onSwapCraft(int count) - Overrides:
onSwapCraftin classSlot
-
checkTakeAchievements
- Overrides:
checkTakeAchievementsin classSlot
-
copyAllInputItems
-
getRemainingItems
-
onTake
-
isFake
-