13
0
geforkt von Mirrors/Paper
Paper/src/main/java/net/minecraft/server/IInventory.java
Celtic Minstrel 5c8fd4995f [Bleeding] Implemented Inventory.{get,set}MaxStackSize(). Addresses BUKKIT-1076
- Custom inventories also respect this setting now.
2012-03-15 22:44:10 -04:00

51 Zeilen
881 B
Java

package net.minecraft.server;
// CraftBukkit start
import java.util.List;
import org.bukkit.craftbukkit.entity.CraftHumanEntity;
import org.bukkit.entity.HumanEntity;
import org.bukkit.inventory.InventoryHolder;
// CraftBukkit end
public interface IInventory {
int getSize();
ItemStack getItem(int i);
ItemStack splitStack(int i, int j);
ItemStack splitWithoutUpdate(int i);
void setItem(int i, ItemStack itemstack);
String getName();
int getMaxStackSize();
void update();
boolean a(EntityHuman entityhuman);
void f();
void g();
// CraftBukkit start
ItemStack[] getContents();
void onOpen(CraftHumanEntity who);
void onClose(CraftHumanEntity who);
List<HumanEntity> getViewers();
InventoryHolder getOwner();
void setMaxStackSize(int size);
int MAX_STACK = 64;
//CraftBukkit end
}