Update to Minecraft 1.19.4

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2023-03-15 03:30:00 +11:00
parent 90a887a912
commit 40076782ed
227 changed files with 2788 additions and 1621 deletions

View File

@@ -1,11 +1,13 @@
--- a/net/minecraft/world/damagesource/DamageSource.java
+++ b/net/minecraft/world/damagesource/DamageSource.java
@@ -49,6 +49,18 @@
private boolean isFall;
private boolean noAggro;
public final String msgId;
@@ -20,6 +20,38 @@
private final Entity directEntity;
@Nullable
private final Vec3D damageSourcePosition;
+ // CraftBukkit start
+ private boolean sweep;
+ private boolean melting;
+ private boolean poison;
+
+ public boolean isSweep() {
+ return sweep;
@@ -15,7 +17,25 @@
+ this.sweep = true;
+ return this;
+ }
+
+ public boolean isMelting() {
+ return melting;
+ }
+
+ public DamageSource melting() {
+ this.melting = true;
+ return this;
+ }
+
+ public boolean isPoison() {
+ return poison;
+ }
+
+ public DamageSource poison() {
+ this.poison = true;
+ return this;
+ }
+ // CraftBukkit end
public static DamageSource fallingBlock(Entity entity) {
return (new EntityDamageSource("fallingBlock", entity)).damageHelmet();
public String toString() {
return "DamageSource (" + this.type().msgId() + ")";