Class InventoryCraftingDirtyable

java.lang.Object
net.minecraft.world.inventory.TransientCraftingContainer
org.cyclops.integratedterminals.inventory.InventoryCraftingDirtyable
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.CraftingContainer, net.minecraft.world.inventory.StackedContentsCompatible

public class InventoryCraftingDirtyable extends net.minecraft.world.inventory.TransientCraftingContainer
An extended CraftingContainer that has a IDirtyMarkListener.
  • Field Summary

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    InventoryCraftingDirtyable(net.minecraft.world.inventory.AbstractContainerMenu eventHandlerIn, int width, int height, org.cyclops.cyclopscore.persist.IDirtyMarkListener dirtyMarkListener)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    removeItem(int index, int count)
     
    void
     
    void
    setItem(int index, net.minecraft.world.item.ItemStack stack)
     

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

    clearContent, fillStackedContents, getContainerSize, getHeight, getItem, getItems, getWidth, isEmpty, removeItemNoUpdate, stillValid

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.Container

    canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
  • Constructor Details

    • InventoryCraftingDirtyable

      public InventoryCraftingDirtyable(net.minecraft.world.inventory.AbstractContainerMenu eventHandlerIn, int width, int height, org.cyclops.cyclopscore.persist.IDirtyMarkListener dirtyMarkListener)
  • Method Details

    • removeItem

      public net.minecraft.world.item.ItemStack removeItem(int index, int count)
      Specified by:
      removeItem in interface net.minecraft.world.Container
      Overrides:
      removeItem in class net.minecraft.world.inventory.TransientCraftingContainer
    • setItem

      public void setItem(int index, net.minecraft.world.item.ItemStack stack)
      Specified by:
      setItem in interface net.minecraft.world.Container
      Overrides:
      setItem in class net.minecraft.world.inventory.TransientCraftingContainer
    • setChanged

      public void setChanged()
      Specified by:
      setChanged in interface net.minecraft.world.Container
      Overrides:
      setChanged in class net.minecraft.world.inventory.TransientCraftingContainer