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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    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)
     
    static net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    inventoryToList(net.minecraft.world.Container inventory, boolean copy)
     
    void
    onTake(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, remove

    Methods inherited from class net.minecraft.world.inventory.Slot

    allowModification, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isHighlightable, isSameInventory, mayPickup, onQuickCraft, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setChanged, tryRemove

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • onTake

      public void onTake(net.minecraft.world.entity.player.Player thePlayer, net.minecraft.world.item.ItemStack stack)
      Overrides:
      onTake in class net.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)