Update to Minecraft 1.17.1

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-07-07 00:00:00 +10:00
parent 0392f45e9c
commit e8c9836ec9
59 changed files with 428 additions and 492 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/network/PacketDataSerializer.java
+++ b/net/minecraft/network/PacketDataSerializer.java
@@ -54,6 +54,8 @@
@@ -55,6 +55,8 @@
import net.minecraft.world.phys.MovingObjectPositionBlock;
import net.minecraft.world.phys.Vec3D;
@@ -9,7 +9,7 @@
public class PacketDataSerializer extends ByteBuf {
private static final int MAX_VARINT_SIZE = 5;
@@ -112,7 +114,7 @@
@@ -123,7 +125,7 @@
public <T, C extends Collection<T>> C a(IntFunction<C> intfunction, Function<PacketDataSerializer, T> function) {
int i = this.j();
@@ -18,7 +18,7 @@
for (int j = 0; j < i; ++j) {
c0.add(function.apply(this));
@@ -123,7 +125,7 @@
@@ -134,7 +136,7 @@
public <T> void a(Collection<T> collection, BiConsumer<PacketDataSerializer, T> biconsumer) {
this.d(collection.size());
@@ -27,7 +27,7 @@
while (iterator.hasNext()) {
T t0 = iterator.next();
@@ -134,7 +136,7 @@
@@ -145,7 +147,7 @@
}
public <T> List<T> a(Function<PacketDataSerializer, T> function) {
@@ -36,7 +36,7 @@
}
public IntList a() {
@@ -150,12 +152,12 @@
@@ -161,12 +163,12 @@
public void a(IntList intlist) {
this.d(intlist.size());
@@ -51,7 +51,7 @@
for (int j = 0; j < i; ++j) {
K k0 = function.apply(this);
@@ -330,7 +332,7 @@
@@ -355,7 +357,7 @@
}
public <T extends Enum<T>> T a(Class<T> oclass) {
@@ -60,7 +60,7 @@
}
public PacketDataSerializer a(Enum<?> oenum) {
@@ -407,7 +409,7 @@
@@ -432,7 +434,7 @@
} else {
try {
NBTCompressedStreamTools.a(nbttagcompound, (DataOutput) (new ByteBufOutputStream(this)));
@@ -69,7 +69,7 @@
throw new EncoderException(ioexception);
}
}
@@ -444,7 +446,7 @@
@@ -469,7 +471,7 @@
}
public PacketDataSerializer a(ItemStack itemstack) {
@@ -78,7 +78,7 @@
this.writeBoolean(false);
} else {
this.writeBoolean(true);
@@ -473,6 +475,11 @@
@@ -498,6 +500,11 @@
ItemStack itemstack = new ItemStack(Item.getById(i), b0);
itemstack.setTag(this.m());