Package com.lightning.northstar.util
Class BetterSimpleContainer
java.lang.Object
net.minecraft.world.SimpleContainer
com.lightning.northstar.util.BetterSimpleContainer
- All Implemented Interfaces:
net.minecraft.world.Clearable,net.minecraft.world.Container,net.minecraft.world.inventory.StackedContentsCompatible
@ParametersAreNonnullByDefault
public class BetterSimpleContainer
extends net.minecraft.world.SimpleContainer
-
Field Summary
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER -
Constructor Summary
ConstructorsConstructorDescriptionBetterSimpleContainer(int size) BetterSimpleContainer(net.minecraft.world.item.ItemStack... items) -
Method Summary
Methods inherited from class net.minecraft.world.SimpleContainer
addItem, addListener, canAddItem, clearContent, fillStackedContents, getContainerSize, getItem, getItems, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setChanged, setItem, stillValid, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
-
Constructor Details
-
BetterSimpleContainer
public BetterSimpleContainer(int size) -
BetterSimpleContainer
public BetterSimpleContainer(net.minecraft.world.item.ItemStack... items)
-
-
Method Details
-
fromTag
public void fromTag(net.minecraft.nbt.ListTag containerNbt, net.minecraft.core.HolderLookup.Provider levelRegistry) - Overrides:
fromTagin classnet.minecraft.world.SimpleContainer
-
createTag
public net.minecraft.nbt.ListTag createTag(net.minecraft.core.HolderLookup.Provider levelRegistry) - Overrides:
createTagin classnet.minecraft.world.SimpleContainer
-