#744: Add ability to get location from smithing inventory

By: Phoenix616 <max@themoep.de>
This commit is contained in:
CraftBukkit/Spigot
2020-09-03 08:18:30 +10:00
parent 4f32c945c9
commit 2ee7427806
2 changed files with 11 additions and 2 deletions

View File

@@ -1,11 +1,20 @@
package org.bukkit.craftbukkit.inventory;
import net.minecraft.server.IInventory;
import org.bukkit.Location;
import org.bukkit.inventory.SmithingInventory;
public class CraftInventorySmithing extends CraftResultInventory implements SmithingInventory {
public CraftInventorySmithing(IInventory inventory, IInventory resultInventory) {
private final Location location;
public CraftInventorySmithing(Location location, IInventory inventory, IInventory resultInventory) {
super(inventory, resultInventory);
this.location = location;
}
@Override
public Location getLocation() {
return location;
}
}