Update to Minecraft 1.19.3

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2022-12-08 03:00:00 +11:00
parent a13136ada2
commit 8b26bb8f3e
305 changed files with 3331 additions and 2864 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/world/entity/item/EntityItem.java
+++ b/net/minecraft/world/entity/item/EntityItem.java
@@ -32,6 +32,12 @@
@@ -30,6 +30,12 @@
import net.minecraft.world.level.gameevent.GameEvent;
import net.minecraft.world.phys.Vec3D;
@@ -13,7 +13,7 @@
public class EntityItem extends Entity {
private static final DataWatcherObject<ItemStack> DATA_ITEM = DataWatcher.defineId(EntityItem.class, DataWatcherRegistry.ITEM_STACK);
@@ -46,6 +52,7 @@
@@ -44,6 +50,7 @@
@Nullable
private UUID owner;
public final float bobOffs;
@@ -21,7 +21,7 @@
public EntityItem(EntityTypes<? extends EntityItem> entitytypes, World world) {
super(entitytypes, world);
@@ -103,9 +110,12 @@
@@ -101,9 +108,12 @@
this.discard();
} else {
super.tick();
@@ -37,7 +37,7 @@
this.xo = this.getX();
this.yo = this.getY();
@@ -155,9 +165,11 @@
@@ -153,9 +163,11 @@
this.mergeWithNeighbours();
}
@@ -49,7 +49,7 @@
this.hasImpulse |= this.updateInWaterStateAndDoFluidPushing();
if (!this.level.isClientSide) {
@@ -169,6 +181,12 @@
@@ -167,6 +179,12 @@
}
if (!this.level.isClientSide && this.age >= 6000) {
@@ -62,7 +62,7 @@
this.discard();
}
@@ -244,10 +262,11 @@
@@ -242,10 +260,11 @@
private static void merge(EntityItem entityitem, ItemStack itemstack, ItemStack itemstack1) {
ItemStack itemstack2 = merge(itemstack, itemstack1, 64);
@@ -75,7 +75,7 @@
merge(entityitem, itemstack, itemstack1);
entityitem.pickupDelay = Math.max(entityitem.pickupDelay, entityitem1.pickupDelay);
entityitem.age = Math.min(entityitem.age, entityitem1.age);
@@ -273,6 +292,11 @@
@@ -271,6 +290,11 @@
} else if (this.level.isClientSide) {
return true;
} else {
@@ -87,7 +87,7 @@
this.markHurt();
this.health = (int) ((float) this.health - f);
this.gameEvent(GameEvent.ENTITY_DAMAGE, damagesource.getEntity());
@@ -336,6 +360,46 @@
@@ -334,6 +358,46 @@
Item item = itemstack.getItem();
int i = itemstack.getCount();
@@ -134,7 +134,7 @@
if (this.pickupDelay == 0 && (this.owner == null || this.owner.equals(entityhuman.getUUID())) && entityhuman.getInventory().add(itemstack)) {
entityhuman.take(this, i);
if (itemstack.isEmpty()) {
@@ -379,7 +443,9 @@
@@ -377,7 +441,9 @@
}
public void setItem(ItemStack itemstack) {