Class SlotCraftingAutoRefill
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.world.inventory.ResultSlot
org.cyclops.integratedterminals.inventory.SlotCraftingAutoRefill
public class SlotCraftingAutoRefill
extends net.minecraft.world.inventory.ResultSlot
A crafting slot that will automatically auto-refill from the storage (if enabled).
-
Field Summary
Fields inherited from class net.minecraft.world.inventory.Slot
index, x, y -
Constructor Summary
ConstructorsConstructorDescriptionSlotCraftingAutoRefill(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.CraftingContainer inventoryCrafting, net.minecraft.world.Container inventoryIn, int slotIndex, int xPosition, int yPosition, TerminalStorageTabIngredientComponentItemStackCraftingCommon tabCommon, TerminalStorageTabIngredientComponentServer<net.minecraft.world.item.ItemStack, Integer> tabServer, ContainerTerminalStorageBase container) -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>getRemoved(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> before, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> after) static net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>inventoryToList(net.minecraft.world.Container inventory, boolean copy) voidonTake(net.minecraft.world.entity.player.Player thePlayer, net.minecraft.world.item.ItemStack stack) Methods inherited from class net.minecraft.world.inventory.ResultSlot
checkTakeAchievements, mayPlace, onQuickCraft, onSwapCraft, removeMethods inherited from class net.minecraft.world.inventory.Slot
allowModification, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, initialize, isActive, isSameInventory, mayPickup, onQuickCraft, safeInsert, safeInsert, safeTake, set, setBackground, setChanged, tryRemove
-
Constructor Details
-
SlotCraftingAutoRefill
public SlotCraftingAutoRefill(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.CraftingContainer inventoryCrafting, net.minecraft.world.Container inventoryIn, int slotIndex, int xPosition, int yPosition, TerminalStorageTabIngredientComponentItemStackCraftingCommon tabCommon, TerminalStorageTabIngredientComponentServer<net.minecraft.world.item.ItemStack, Integer> tabServer, ContainerTerminalStorageBase container)
-
-
Method Details
-
onTake
public void onTake(net.minecraft.world.entity.player.Player thePlayer, net.minecraft.world.item.ItemStack stack) - Overrides:
onTakein classnet.minecraft.world.inventory.ResultSlot
-
inventoryToList
public static net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> inventoryToList(net.minecraft.world.Container inventory, boolean copy) -
getRemoved
public static net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemoved(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> before, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> after)
-