mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-23 00:49:20 +00:00
fix renaming
This commit is contained in:
@@ -13,8 +13,11 @@ public class LegacyInventoryUtils {
|
||||
return player.getOpenInventory().getTopInventory();
|
||||
}
|
||||
|
||||
public static void setRepairCost(AnvilInventory anvilInventory, int repairCost, int amount) {
|
||||
public static void setRepairCost(AnvilInventory anvilInventory, int repairCost) {
|
||||
anvilInventory.setRepairCost(repairCost);
|
||||
}
|
||||
|
||||
public static void setRepairCostAmount(AnvilInventory anvilInventory, int amount) {
|
||||
anvilInventory.setRepairCostAmount(amount);
|
||||
}
|
||||
|
||||
@@ -27,6 +30,10 @@ public class LegacyInventoryUtils {
|
||||
return anvilInventory.getMaximumRepairCost();
|
||||
}
|
||||
|
||||
public static int getRepairCost(AnvilInventory anvilInventory) {
|
||||
return anvilInventory.getRepairCost();
|
||||
}
|
||||
|
||||
public static InventoryView getView(PrepareAnvilEvent event) {
|
||||
return event.getView();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user