All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minecraft.server.IInventory Maven / Gradle / Ivy

The newest version!
package net.minecraft.server;

import org.bukkit.craftbukkit.entity.CraftHumanEntity;

public interface IInventory extends INamableTileEntity {

  int MAX_STACK = 64;

  int getSize();

  ItemStack getItem(int i);

  ItemStack splitStack(int i, int j);

  ItemStack splitWithoutUpdate(int i);

  void setItem(int i, ItemStack itemstack);

  int getMaxStackSize();

  void setMaxStackSize(int size);

  void update();

  boolean a(EntityHuman entityhuman);

  void startOpen(EntityHuman entityhuman);

  void closeContainer(EntityHuman entityhuman);

  boolean b(int i, ItemStack itemstack);

  int getProperty(int i);

  void b(int i, int j);

  int g();

  void l();

  // CraftBukkit start
  ItemStack[] getContents();

  void onOpen(CraftHumanEntity who);

  void onClose(CraftHumanEntity who);

  java.util.List getViewers();

  org.bukkit.inventory.InventoryHolder getOwner();
  // CraftBukkit end
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy