2014-11-28 12:23:19 +01:00
|
|
|
--- ../work/decompile-8eb82bde//net/minecraft/server/InventoryCraftResult.java 2014-11-28 11:22:56.022823161 +0000
|
|
|
|
+++ src/main/java/net/minecraft/server/InventoryCraftResult.java 2014-11-28 11:01:54.000000000 +0000
|
2014-11-25 22:32:16 +01:00
|
|
|
@@ -1,8 +1,36 @@
|
|
|
|
package net.minecraft.server;
|
|
|
|
|
|
|
|
+// CraftBukkit start
|
|
|
|
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
|
|
|
+import org.bukkit.entity.HumanEntity;
|
|
|
|
+// CraftBukkit end
|
|
|
|
+
|
|
|
|
public class InventoryCraftResult implements IInventory {
|
|
|
|
|
|
|
|
private ItemStack[] items = new ItemStack[1];
|
|
|
|
+
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ private int maxStack = MAX_STACK;
|
|
|
|
+
|
|
|
|
+ public ItemStack[] getContents() {
|
|
|
|
+ return this.items;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public org.bukkit.inventory.InventoryHolder getOwner() {
|
|
|
|
+ return null; // Result slots don't get an owner
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // Don't need a transaction; the InventoryCrafting keeps track of it for us
|
|
|
|
+ public void onOpen(CraftHumanEntity who) {}
|
|
|
|
+ public void onClose(CraftHumanEntity who) {}
|
|
|
|
+ public java.util.List<HumanEntity> getViewers() {
|
|
|
|
+ return new java.util.ArrayList<HumanEntity>();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setMaxStackSize(int size) {
|
|
|
|
+ maxStack = size;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
|
|
|
|
public InventoryCraftResult() {}
|
|
|
|
|
|
|
|
@@ -53,7 +81,7 @@
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getMaxStackSize() {
|
|
|
|
- return 64;
|
|
|
|
+ return maxStack; // CraftBukkit
|
|
|
|
}
|
|
|
|
|
|
|
|
public void update() {}
|