mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
SPIGOT-7527, #1310: Add WindCharge#explode()
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
8b40071aa8
commit
889ce05e35
@ -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);
|
||||
}
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user