#744: Add ability to get location from smithing inventory
By: Phoenix616 <max@themoep.de>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user