SPIGOT-7527, #1310: Add WindCharge#explode()

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot 2023-12-12 19:34:37 +11:00
parent 8b40071aa8
commit 889ce05e35
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/net/minecraft/world/entity/projectile/WindCharge.java
+++ b/net/minecraft/world/entity/projectile/WindCharge.java
@@ -81,7 +81,7 @@
}
}
- private void explode() {
+ public void explode() { // PAIL private -> public
this.level().explode(this, (DamageSource) null, WindCharge.EXPLOSION_DAMAGE_CALCULATOR, this.getX(), this.getY(), this.getZ(), (float) (3.0D + this.random.nextDouble()), false, World.a.BLOW, Particles.GUST, Particles.GUST_EMITTER, SoundEffects.WIND_BURST);
}

View File

@ -8,6 +8,16 @@ public class CraftWindCharge extends CraftFireball implements WindCharge {
super(server, entity);
}
@Override
public void explode() {
this.getHandle().explode();
}
@Override
public net.minecraft.world.entity.projectile.WindCharge getHandle() {
return (net.minecraft.world.entity.projectile.WindCharge) this.entity;
}
@Override
public String toString() {
return "CraftWindCharge";