Paper/src/main/java/net/minecraft/server/ContainerEnchantTableInventory.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

22 Zeilen
655 B
Java

package net.minecraft.server;
public class ContainerEnchantTableInventory extends ContainerEnchantTableSubcontainer { // CraftBukkit -> public
public final ContainerEnchantTable enchantTable; // CraftBukkit -> public
ContainerEnchantTableInventory(ContainerEnchantTable containerenchanttable, String s, int i) {
super(s, i);
this.enchantTable = containerenchanttable;
super.setMaxStackSize(1); // CraftBukkit
}
public int getMaxStackSize() {
return super.getMaxStackSize(); // CraftBukkit
}
public void update() {
super.update();
this.enchantTable.a((IInventory) this);
}
}