2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/damagesource/DamageSource.java
|
|
|
|
+++ b/net/minecraft/world/damagesource/DamageSource.java
|
2022-12-07 17:00:00 +01:00
|
|
|
@@ -49,6 +49,18 @@
|
2021-06-11 07:00:00 +02:00
|
|
|
private boolean isFall;
|
|
|
|
private boolean noAggro;
|
|
|
|
public final String msgId;
|
2016-12-23 12:39:33 +01:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ private boolean sweep;
|
|
|
|
+
|
|
|
|
+ public boolean isSweep() {
|
|
|
|
+ return sweep;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public DamageSource sweep() {
|
|
|
|
+ this.sweep = true;
|
|
|
|
+ return this;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
|
2022-12-07 17:00:00 +01:00
|
|
|
public static DamageSource fallingBlock(Entity entity) {
|
|
|
|
return (new EntityDamageSource("fallingBlock", entity)).damageHelmet();
|