Class IndexedInventory
java.lang.Object
org.cyclops.cyclopscore.inventory.SimpleInventory
org.cyclops.cyclopscore.inventory.LargeInventory
org.cyclops.cyclopscore.inventory.IndexedInventory
- All Implemented Interfaces:
net.minecraft.world.Clearable
,net.minecraft.world.Container
,net.minecraft.world.WorldlyContainer
,org.cyclops.cyclopscore.inventory.INBTInventory
,IndexedSlotlessItemHandlerWrapper.IInventoryIndexReference
,org.cyclops.cyclopscore.persist.nbt.INBTSerializable
@Deprecated
public class IndexedInventory
extends LargeInventory
implements IndexedSlotlessItemHandlerWrapper.IInventoryIndexReference
Deprecated.
An inventory that adds an index from item to slot on a regular inventory.
-
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 inherited from class org.cyclops.cyclopscore.inventory.SimpleInventory
CODEC, contents, STREAM_CODEC
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
Constructor Summary
ConstructorDescriptionDeprecated.Default constructor for NBT persistence, don't call this yourself.IndexedInventory
(int size, int stackLimit) Deprecated.Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.protected void
Deprecated.Deprecated.Map
<net.minecraft.world.item.Item, it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.item.ItemStack>> getIndex()
Deprecated.int
Deprecated.Deprecated.void
readFromNBT
(net.minecraft.core.HolderLookup.Provider provider, net.minecraft.nbt.CompoundTag data, String tag) Deprecated.void
setItem
(int slotId, net.minecraft.world.item.ItemStack itemStack) Deprecated.Methods inherited from class org.cyclops.cyclopscore.inventory.LargeInventory
writeToNBT
Methods inherited from class org.cyclops.cyclopscore.inventory.SimpleInventory
addDirtyMarkListener, canPlaceItem, canPlaceItemThroughFace, canTakeItemThroughFace, equals, fromNBT, getContainerSize, getItem, getItemHandler, getItemHandlerSided, getItemStacks, getMaxStackSize, getSlotsForFace, getState, hashCode, isEmpty, onInventoryChanged, read, removeDirtyMarkListener, removeItem, removeItemNoUpdate, setChanged, startOpen, stillValid, stopOpen, toNBT, write
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.Container
canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf
-
Constructor Details
-
IndexedInventory
public IndexedInventory()Deprecated.Default constructor for NBT persistence, don't call this yourself. -
IndexedInventory
public IndexedInventory(int size, int stackLimit) Deprecated.Make a new instance.- Parameters:
size
- The amount of slots in the inventory.stackLimit
- The stack limit for each slot.
-
-
Method Details
-
createIndex
protected void createIndex()Deprecated. -
readFromNBT
public void readFromNBT(net.minecraft.core.HolderLookup.Provider provider, net.minecraft.nbt.CompoundTag data, String tag) Deprecated.- Overrides:
readFromNBT
in classLargeInventory
-
setItem
public void setItem(int slotId, net.minecraft.world.item.ItemStack itemStack) Deprecated.- Specified by:
setItem
in interfacenet.minecraft.world.Container
- Overrides:
setItem
in classSimpleInventory
-
clearContent
public void clearContent()Deprecated.- Specified by:
clearContent
in interfacenet.minecraft.world.Clearable
- Overrides:
clearContent
in classSimpleInventory
-
getInventoryReferenceStackLimit
public int getInventoryReferenceStackLimit()Deprecated.- Specified by:
getInventoryReferenceStackLimit
in interfaceIndexedSlotlessItemHandlerWrapper.IInventoryIndexReference
-
getIndex
public Map<net.minecraft.world.item.Item,it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.item.ItemStack>> getIndex()Deprecated.- Specified by:
getIndex
in interfaceIndexedSlotlessItemHandlerWrapper.IInventoryIndexReference
-
getEmptySlots
Deprecated.- Specified by:
getEmptySlots
in interfaceIndexedSlotlessItemHandlerWrapper.IInventoryIndexReference
-
getNonEmptySlots
Deprecated.- Specified by:
getNonEmptySlots
in interfaceIndexedSlotlessItemHandlerWrapper.IInventoryIndexReference
-