@@ -1,30 +1,30 @@
|
||||
--- a/net/minecraft/server/InventoryLargeChest.java
|
||||
+++ b/net/minecraft/server/InventoryLargeChest.java
|
||||
@@ -1,6 +1,13 @@
|
||||
@@ -1,11 +1,62 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
+// CraftBukkit start
|
||||
+import java.util.ArrayList;
|
||||
+import java.util.List;
|
||||
+import org.bukkit.Location;
|
||||
+
|
||||
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
||||
+import org.bukkit.entity.HumanEntity;
|
||||
+// CraftBukkit end
|
||||
|
||||
+
|
||||
public class InventoryLargeChest implements ITileInventory {
|
||||
|
||||
@@ -8,6 +15,48 @@
|
||||
private final String a;
|
||||
public final ITileInventory left;
|
||||
public final ITileInventory right;
|
||||
|
||||
+ // CraftBukkit start - add fields and methods
|
||||
+ public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
|
||||
+
|
||||
+ public ItemStack[] getContents() {
|
||||
+ ItemStack[] result = new ItemStack[this.getSize()];
|
||||
+ for (int i = 0; i < result.length; i++) {
|
||||
+ result[i] = this.getItem(i);
|
||||
+ public List<ItemStack> getContents() {
|
||||
+ List<ItemStack> result = new ArrayList<ItemStack>(this.getSize());
|
||||
+ for (int i = 0; i < this.getSize(); i++) {
|
||||
+ result.add(this.getItem(i));
|
||||
+ }
|
||||
+ return result;
|
||||
+ }
|
||||
@@ -63,7 +63,7 @@
|
||||
public InventoryLargeChest(String s, ITileInventory itileinventory, ITileInventory itileinventory1) {
|
||||
this.a = s;
|
||||
if (itileinventory == null) {
|
||||
@@ -73,7 +122,7 @@
|
||||
@@ -72,7 +123,7 @@
|
||||
}
|
||||
|
||||
public int getMaxStackSize() {
|
||||
|
||||
Reference in New Issue
Block a user