Class BlockEntityWorking.Inventory<T extends BlockEntityWorking<T,?>>

java.lang.Object
org.cyclops.cyclopscore.inventory.SimpleInventory
org.cyclops.evilcraft.core.blockentity.BlockEntityWorking.Inventory<T>
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.WorldlyContainer, org.cyclops.cyclopscore.inventory.INBTInventory, org.cyclops.cyclopscore.persist.nbt.INBTSerializable
Direct Known Subclasses:
BlockEntityBloodInfuser.Inventory, BlockEntitySanguinaryEnvironmentalAccumulator.Inventory
Enclosing class:
BlockEntityWorking<T extends BlockEntityWorking<T,O>,O>

public static class BlockEntityWorking.Inventory<T extends BlockEntityWorking<T,?>> extends org.cyclops.cyclopscore.inventory.SimpleInventory
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.cyclops.cyclopscore.persist.nbt.INBTSerializable

    org.cyclops.cyclopscore.persist.nbt.INBTSerializable.SelfNBTClassType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final T
     

    Fields inherited from class org.cyclops.cyclopscore.inventory.SimpleInventory

    contents

    Fields inherited from interface net.minecraft.world.Container

    LARGE_MAX_STACK_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Inventory(int size, int stackLimit, T tile)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canPlaceItem(int slot, net.minecraft.world.item.ItemStack itemStack)
     
    net.minecraft.world.item.ItemStack
    removeItem(int slotId, int count)
     
    void
    setItem(int slotId, net.minecraft.world.item.ItemStack itemStack)
     

    Methods inherited from class org.cyclops.cyclopscore.inventory.SimpleInventory

    addDirtyMarkListener, canPlaceItemThroughFace, canTakeItemThroughFace, clearContent, fromNBT, getContainerSize, getItem, getItemHandler, getItemHandlerSided, getItemStacks, getMaxStackSize, getSlotsForFace, getState, isEmpty, onInventoryChanged, read, readFromNBT, removeDirtyMarkListener, removeItemNoUpdate, setChanged, startOpen, stillValid, stopOpen, toNBT, write, writeToNBT

    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

    countItem, hasAnyMatching, hasAnyOf
  • Field Details

  • Constructor Details

    • Inventory

      public Inventory(int size, int stackLimit, T tile)
  • Method Details

    • removeItem

      public net.minecraft.world.item.ItemStack removeItem(int slotId, int count)
      Specified by:
      removeItem in interface net.minecraft.world.Container
      Overrides:
      removeItem in class org.cyclops.cyclopscore.inventory.SimpleInventory
    • setItem

      public void setItem(int slotId, net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      setItem in interface net.minecraft.world.Container
      Overrides:
      setItem in class org.cyclops.cyclopscore.inventory.SimpleInventory
    • canPlaceItem

      public boolean canPlaceItem(int slot, net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      canPlaceItem in interface net.minecraft.world.Container
      Overrides:
      canPlaceItem in class org.cyclops.cyclopscore.inventory.SimpleInventory