aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower-stripped/net/minecraft/world/damagesource/DamageSource.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/damagesource/DamageSource.java.patch')
-rw-r--r--patch-remap/mache-vineflower-stripped/net/minecraft/world/damagesource/DamageSource.java.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/damagesource/DamageSource.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/damagesource/DamageSource.java.patch
new file mode 100644
index 0000000000..471b9ae2dd
--- /dev/null
+++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/damagesource/DamageSource.java.patch
@@ -0,0 +1,43 @@
+--- a/net/minecraft/world/damagesource/DamageSource.java
++++ b/net/minecraft/world/damagesource/DamageSource.java
+@@ -19,8 +20,39 @@
+ private final Entity directEntity;
+ @Nullable
+ private final Vec3 damageSourcePosition;
++ // CraftBukkit start
++ private boolean sweep;
++ private boolean melting;
++ private boolean poison;
+
+- @Override
++ public boolean isSweep() {
++ return sweep;
++ }
++
++ public DamageSource sweep() {
++ 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 String toString() {
+ return "DamageSource (" + this.type().msgId() + ")";
+ }