@@ -1,9 +1,9 @@
|
||||
--- a/net/minecraft/server/InventoryCrafting.java
|
||||
+++ b/net/minecraft/server/InventoryCrafting.java
|
||||
@@ -1,6 +1,14 @@
|
||||
package net.minecraft.server;
|
||||
@@ -2,6 +2,14 @@
|
||||
|
||||
import java.util.Iterator;
|
||||
import javax.annotation.Nullable;
|
||||
+// CraftBukkit start
|
||||
+import java.util.List;
|
||||
+import org.bukkit.Location;
|
||||
@@ -13,15 +13,15 @@
|
||||
+import org.bukkit.event.inventory.InventoryType;
|
||||
+// CraftBukkit end
|
||||
|
||||
public class InventoryCrafting implements IInventory {
|
||||
public class InventoryCrafting implements IInventory, AutoRecipeOutput {
|
||||
|
||||
@@ -9,6 +17,53 @@
|
||||
@@ -10,6 +18,63 @@
|
||||
private final int c;
|
||||
public final Container container;
|
||||
|
||||
+ // CraftBukkit start - add fields
|
||||
+ public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
|
||||
+ public IRecipe currentRecipe;
|
||||
+ private IRecipe currentRecipe;
|
||||
+ public IInventory resultInventory;
|
||||
+ private EntityHuman owner;
|
||||
+ private int maxStack = MAX_STACK;
|
||||
@@ -60,6 +60,16 @@
|
||||
+ return owner.getBukkitEntity().getLocation();
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public IRecipe getCurrentRecipe() {
|
||||
+ return currentRecipe;
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public void setCurrentRecipe(IRecipe currentRecipe) {
|
||||
+ this.currentRecipe = currentRecipe;
|
||||
+ }
|
||||
+
|
||||
+ public InventoryCrafting(Container container, int i, int j, EntityHuman player) {
|
||||
+ this(container, i, j);
|
||||
+ this.owner = player;
|
||||
|
||||
Reference in New Issue
Block a user