mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-26 18:03:51 -07:00
Added getContents() to IInventory and implemented it.
Implemented Inventory and PlayerInventory and updated StorageMinecart and Slot. Added getMaxStackSize to CraftItemStack.
This commit is contained in:
@@ -12,7 +12,7 @@ public class CraftItemStack extends ItemStack {
|
||||
}
|
||||
|
||||
/*
|
||||
* Unsure if we have to syn before each of these calls the values in 'item'
|
||||
* Unsure if we have to sync before each of these calls the values in 'item'
|
||||
* are all public.
|
||||
*/
|
||||
|
||||
@@ -82,4 +82,8 @@ public class CraftItemStack extends ItemStack {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxStackSize() {
|
||||
return item.a().b();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user