Paper/nms-patches/DamageSource.patch

22 Zeilen
564 B
Diff

--- a/net/minecraft/server/DamageSource.java
+++ b/net/minecraft/server/DamageSource.java
2020-06-25 02:00:00 +02:00
@@ -35,6 +35,18 @@
private boolean D;
2018-07-15 02:00:00 +02:00
private boolean E;
public final String translationIndex;
+ // CraftBukkit start
+ private boolean sweep;
+
+ public boolean isSweep() {
+ return sweep;
+ }
+
+ public DamageSource sweep() {
+ this.sweep = true;
+ return this;
+ }
+ // CraftBukkit end
2020-06-25 02:00:00 +02:00
public static DamageSource b(EntityLiving entityliving) {
2019-12-10 23:00:00 +01:00
return new EntityDamageSource("sting", entityliving);