Commits
Doc authored and md_5 committed 13670b44266
1 1 | --- a/net/minecraft/world/inventory/ContainerAnvil.java |
2 2 | +++ b/net/minecraft/world/inventory/ContainerAnvil.java |
3 - | |
3 + | |
4 4 | import org.apache.logging.log4j.LogManager; |
5 5 | import org.apache.logging.log4j.Logger; |
6 6 | |
7 7 | +// CraftBukkit start |
8 8 | +import org.bukkit.craftbukkit.inventory.CraftInventoryView; |
9 9 | +// CraftBukkit end |
10 10 | + |
11 11 | public class ContainerAnvil extends ContainerAnvilAbstract { |
12 12 | |
13 13 | private static final Logger LOGGER = LogManager.getLogger(); |
14 + | private static final boolean DEBUG_COST = false; |
15 + | public static final int MAX_NAME_LENGTH = 50; |
16 + | - private int repairItemCountCost; |
17 + | + public int repairItemCountCost; // PAIL private -> public |
18 + | public String itemName; |
19 + | public final ContainerProperty cost; |
20 + | private static final int COST_FAIL = 0; |
14 21 | |
15 22 | private static final int COST_REPAIR_SACRIFICE = 2; |
16 23 | private static final int COST_INCOMPATIBLE_PENALTY = 1; |
17 24 | private static final int COST_RENAME = 1; |
18 25 | + // CraftBukkit start |
19 26 | + public int maximumRepairCost = 40; |
20 27 | + private CraftInventoryView bukkitEntity; |
21 28 | + // CraftBukkit end |
22 29 | |
23 30 | public ContainerAnvil(int i, PlayerInventory playerinventory) { |