@@ -11,16 +11,16 @@
|
||||
|
||||
public class TileEntityShulkerBox extends TileEntityLootable implements IWorldInventory, ITickable {
|
||||
|
||||
@@ -18,6 +22,31 @@
|
||||
private boolean o;
|
||||
private boolean p;
|
||||
@@ -16,6 +20,36 @@
|
||||
private EnumColor l;
|
||||
private boolean m;
|
||||
|
||||
+ // CraftBukkit start - add fields and methods
|
||||
+ public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
|
||||
+ private int maxStack = MAX_STACK;
|
||||
+
|
||||
+ public List<ItemStack> getContents() {
|
||||
+ return this.e;
|
||||
+ return this.contents;
|
||||
+ }
|
||||
+
|
||||
+ public void onOpen(CraftHumanEntity who) {
|
||||
@@ -35,6 +35,11 @@
|
||||
+ return transaction;
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public int getMaxStackSize() {
|
||||
+ return maxStack;
|
||||
+ }
|
||||
+
|
||||
+ public void setMaxStackSize(int size) {
|
||||
+ maxStack = size;
|
||||
+ }
|
||||
@@ -42,13 +47,4 @@
|
||||
+
|
||||
public TileEntityShulkerBox(@Nullable EnumColor enumcolor) {
|
||||
super(TileEntityTypes.SHULKER_BOX);
|
||||
this.e = NonNullList.a(27, ItemStack.a);
|
||||
@@ -143,7 +172,7 @@
|
||||
}
|
||||
|
||||
public int getMaxStackSize() {
|
||||
- return 64;
|
||||
+ return maxStack; // CraftBukkit
|
||||
}
|
||||
|
||||
public boolean c(int i, int j) {
|
||||
this.contents = NonNullList.a(27, ItemStack.a);
|
||||
|
||||
Reference in New Issue
Block a user