geforkt von Mirrors/Paper
5c8fd4995f
- Custom inventories also respect this setting now.
22 Zeilen
655 B
Java
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);
|
|
}
|
|
}
|