Update to Minecraft 1.17

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-06-11 15:00:00 +10:00
parent 75faba7fde
commit b3a8254758
619 changed files with 10708 additions and 8451 deletions

View File

@@ -12,9 +12,9 @@
+
public class InventorySubcontainer implements IInventory, AutoRecipeOutput {
private final int a;
private final int size;
public final NonNullList<ItemStack> items;
private List<IInventoryListener> c;
private List<IInventoryListener> listeners;
+ // CraftBukkit start - add fields and methods
+ public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
@@ -56,8 +56,8 @@
+ }
+
+ public InventorySubcontainer(InventorySubcontainer original) {
+ this(original.a);
+ for (int slot = 0; slot < original.a; slot++) {
+ this(original.size);
+ for (int slot = 0; slot < original.size; slot++) {
+ this.items.set(slot, original.items.get(slot).cloneItemStack());
+ }
+ }
@@ -69,6 +69,6 @@
+ public InventorySubcontainer(int i, org.bukkit.inventory.InventoryHolder owner) {
+ this.bukkitOwner = owner;
+ // CraftBukkit end
this.a = i;
this.items = NonNullList.a(i, ItemStack.b);
this.size = i;
this.items = NonNullList.a(i, ItemStack.EMPTY);
}