Interface IBasicInventory

All Superinterfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container
All Known Implementing Classes:
BoxTileEntity, CookingPotTileEntity, EndTableTileEntity, FossilCleanerTileEntity, FridgeTileEntity, InventoryTileEntity, MowerTileEntity

public interface IBasicInventory extends net.minecraft.world.Container
  • Field Summary

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    canPlaceItem(int index, net.minecraft.world.item.ItemStack stack)
     
    default void
     
    default int
     
    default net.minecraft.world.item.ItemStack
    removeItem(int index, int count)
     
    default void
    startOpen(net.minecraft.world.entity.player.Player player)
     
    default void
    stopOpen(net.minecraft.world.entity.player.Player player)
     

    Methods inherited from interface net.minecraft.world.Container

    canTakeItem, countItem, getContainerSize, getItem, hasAnyMatching, hasAnyOf, isEmpty, removeItemNoUpdate, setChanged, setItem, stillValid
  • Method Details

    • removeItem

      default net.minecraft.world.item.ItemStack removeItem(int index, int count)
      Specified by:
      removeItem in interface net.minecraft.world.Container
    • getMaxStackSize

      default int getMaxStackSize()
      Specified by:
      getMaxStackSize in interface net.minecraft.world.Container
    • startOpen

      default void startOpen(net.minecraft.world.entity.player.Player player)
      Specified by:
      startOpen in interface net.minecraft.world.Container
    • stopOpen

      default void stopOpen(net.minecraft.world.entity.player.Player player)
      Specified by:
      stopOpen in interface net.minecraft.world.Container
    • canPlaceItem

      default boolean canPlaceItem(int index, net.minecraft.world.item.ItemStack stack)
      Specified by:
      canPlaceItem in interface net.minecraft.world.Container
    • clearContent

      default void clearContent()
      Specified by:
      clearContent in interface net.minecraft.world.Clearable