Package net.minecraft.world.inventory
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 p_40166_, CraftingContainer p_40167_, Container p_40168_, int p_40169_, int p_40170_, int p_40171_) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckTakeAchievements(ItemStack p_40185_) booleanprotected voidonQuickCraft(ItemStack p_40180_, int p_40181_) protected voidonSwapCraft(int p_40183_) voidremove(int p_40173_) Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isSameInventory, mayPickup, onQuickCraft, safeInsert, safeInsert, safeTake, set, setBackground, setChanged, tryRemove
-
Field Details
-
craftSlots
-
player
-
removeCount
private int removeCount
-
-
Constructor Details
-
ResultSlot
public ResultSlot(Player p_40166_, CraftingContainer p_40167_, Container p_40168_, int p_40169_, int p_40170_, int p_40171_)
-
-
Method Details
-
mayPlace
-
remove
-
onQuickCraft
- Overrides:
onQuickCraftin classSlot
-
onSwapCraft
protected void onSwapCraft(int p_40183_) - Overrides:
onSwapCraftin classSlot
-
checkTakeAchievements
- Overrides:
checkTakeAchievementsin classSlot
-
onTake
-