Class EnderItemStorage

java.lang.Object
codechicken.enderstorage.api.AbstractEnderStorage
codechicken.enderstorage.storage.EnderItemStorage
All Implemented Interfaces:
Iterable<net.minecraft.world.item.ItemStack>, net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.entity.SlotProvider, net.neoforged.neoforge.common.extensions.ContainerExtension

public class EnderItemStorage extends AbstractEnderStorage implements net.minecraft.world.Container
  • Field Details

  • Constructor Details

  • Method Details

    • loadFromTag

      public void loadFromTag(net.minecraft.world.level.storage.ValueInput input)
      Specified by:
      loadFromTag in class AbstractEnderStorage
    • saveToTag

      public void saveToTag(net.minecraft.world.level.storage.ValueOutput output)
      Specified by:
      saveToTag in class AbstractEnderStorage
    • type

      public String type()
      Specified by:
      type in class AbstractEnderStorage
    • getItem

      public net.minecraft.world.item.ItemStack getItem(int slot)
      Specified by:
      getItem in interface net.minecraft.world.Container
    • removeItemNoUpdate

      public net.minecraft.world.item.ItemStack removeItemNoUpdate(int slot)
      Specified by:
      removeItemNoUpdate in interface net.minecraft.world.Container
    • setItem

      public void setItem(int slot, net.minecraft.world.item.ItemStack stack)
      Specified by:
      setItem in interface net.minecraft.world.Container
    • openInventory

      public void openInventory()
    • closeInventory

      public void closeInventory()
    • getNumOpen

      public int getNumOpen()
    • getContainerSize

      public int getContainerSize()
      Specified by:
      getContainerSize in interface net.minecraft.world.Container
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface net.minecraft.world.Container
    • removeItem

      public net.minecraft.world.item.ItemStack removeItem(int slot, int size)
      Specified by:
      removeItem in interface net.minecraft.world.Container
    • getMaxStackSize

      public int getMaxStackSize()
      Specified by:
      getMaxStackSize in interface net.minecraft.world.Container
    • setChanged

      public void setChanged()
      Specified by:
      setChanged in interface net.minecraft.world.Container
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player var1)
      Specified by:
      stillValid in interface net.minecraft.world.Container
    • empty

      public void empty()
    • openContainer

      public void openContainer(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.chat.Component title)
    • handleContainerPacket

      public void handleContainerPacket(net.minecraft.network.RegistryFriendlyByteBuf packet)
    • getSize

      public int getSize()
    • openCount

      public int openCount()
    • setClientOpen

      public void setClientOpen(int i)
    • canPlaceItem

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

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