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_LIMIT, LARGE_MAX_STACK_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    BetterSimpleContainer(net.minecraft.world.item.ItemStack... items)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.nbt.ListTag
     
    void
    fromTag(net.minecraft.nbt.ListTag containerNbt)
     

    Methods inherited from class net.minecraft.world.SimpleContainer

    addItem, addListener, canAddItem, clearContent, fillStackedContents, getContainerSize, getItem, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setChanged, setItem, stillValid, toString

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.world.Container

    canPlaceItem, canTakeItem, countItem, 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)
      Overrides:
      fromTag in class net.minecraft.world.SimpleContainer
    • createTag

      public net.minecraft.nbt.ListTag createTag()
      Overrides:
      createTag in class net.minecraft.world.SimpleContainer