SPIGOT-7527, #1310: Add WindCharge#explode()
This commit is contained in:
parent
e11fbb9d76
commit
492dd80ce7
@ -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);
|
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
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "CraftWindCharge";
|
return "CraftWindCharge";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user