@@ -7,7 +7,7 @@
|
||||
+// CraftBukkit start
|
||||
+import java.util.List;
|
||||
+import net.minecraft.world.IInventory;
|
||||
+import net.minecraft.world.item.crafting.IRecipe;
|
||||
+import net.minecraft.world.item.crafting.RecipeHolder;
|
||||
+import org.bukkit.Location;
|
||||
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
||||
+import org.bukkit.entity.HumanEntity;
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
+ // CraftBukkit start - add fields
|
||||
+ public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
|
||||
+ private IRecipe currentRecipe;
|
||||
+ private RecipeHolder<?> currentRecipe;
|
||||
+ public IInventory resultInventory;
|
||||
+ private EntityHuman owner;
|
||||
+ private int maxStack = MAX_STACK;
|
||||
@@ -68,12 +68,12 @@
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public IRecipe getCurrentRecipe() {
|
||||
+ public RecipeHolder<?> getCurrentRecipe() {
|
||||
+ return currentRecipe;
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public void setCurrentRecipe(IRecipe currentRecipe) {
|
||||
+ public void setCurrentRecipe(RecipeHolder<?> currentRecipe) {
|
||||
+ this.currentRecipe = currentRecipe;
|
||||
+ }
|
||||
+
|
||||
|
||||
Reference in New Issue
Block a user