Class LargeInventory
java.lang.Object
org.cyclops.cyclopscore.inventory.SimpleInventory
org.cyclops.cyclopscore.inventory.LargeInventory
- 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:
IndexedInventory
Deprecated.
A large inventory implementation.
-
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.LargeInventory
(int size, int stackLimit) Deprecated.Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
readFromNBT
(net.minecraft.core.HolderLookup.Provider provider, net.minecraft.nbt.CompoundTag data, String tag) Deprecated.void
writeToNBT
(net.minecraft.core.HolderLookup.Provider provider, net.minecraft.nbt.CompoundTag data, String tag) Deprecated.Methods inherited from class org.cyclops.cyclopscore.inventory.SimpleInventory
addDirtyMarkListener, canPlaceItem, canPlaceItemThroughFace, canTakeItemThroughFace, clearContent, equals, fromNBT, getContainerSize, getItem, getItemHandler, getItemHandlerSided, getItemStacks, getMaxStackSize, getSlotsForFace, getState, hashCode, isEmpty, onInventoryChanged, read, removeDirtyMarkListener, removeItem, removeItemNoUpdate, setChanged, setItem, 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
-
LargeInventory
public LargeInventory()Deprecated.Default constructor for NBT persistence, don't call this yourself. -
LargeInventory
public LargeInventory(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
-
readFromNBT
public void readFromNBT(net.minecraft.core.HolderLookup.Provider provider, net.minecraft.nbt.CompoundTag data, String tag) Deprecated.- Overrides:
readFromNBT
in classSimpleInventory
-
writeToNBT
public void writeToNBT(net.minecraft.core.HolderLookup.Provider provider, net.minecraft.nbt.CompoundTag data, String tag) Deprecated.- Overrides:
writeToNBT
in classSimpleInventory
-