BreezeWindCharge .java

net.minecraft.world.entity.projectile.hurtingprojectile.windcharge.BreezeWindCharge (class): members: RADIUS, explode. imports: Breeze, WeightedList.

net.minecraft.world.entity.projectile.hurtingprojectile.windchargeclass43 linescommonextends AbstractWindCharge1.2 KB

API Surface (1)

void explode(final Vec3 position)

Fields & Constants (1)

RADIUS

Full Source

BreezeWindCharge.java43 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity.projectile.hurtingprojectile.windcharge;
2
3
import net.minecraft.core.particles.ParticleTypes;
4
import net.minecraft.sounds.SoundEvents;
5
import net.minecraft.util.random.WeightedList;
6
import net.minecraft.world.entity.EntityType;
7
import net.minecraft.world.entity.EntityTypes;
8
import net.minecraft.world.entity.monster.breeze.Breeze;
9
import net.minecraft.world.level.Level;
10
import net.minecraft.world.phys.Vec3;
11
12
public class BreezeWindCharge extends AbstractWindCharge {
13
	private static final float RADIUS = 3.0F;
14
15
	public BreezeWindCharge(final EntityType<? extends AbstractWindCharge> type, final Level level) {
16
		super(type, level);
17
	}
18
19
	public BreezeWindCharge(final Breeze breeze, final Level level) {
20
		super(EntityTypes.BREEZE_WIND_CHARGE, level, breeze, breeze.getX(), breeze.getFiringYPosition(), breeze.getZ());
21
	}
22
23
	@Override
24
	protected void explode(final Vec3 position) {
25
		this.level()
26
			.explode(
27
				this,
28
				null,
29
				EXPLOSION_DAMAGE_CALCULATOR,
30
				position.x(),
31
				position.y(),
32
				position.z(),
33
				3.0F,
34
				false,
35
				Level.ExplosionInteraction.TRIGGER,
36
				ParticleTypes.GUST_EMITTER_SMALL,
37
				ParticleTypes.GUST_EMITTER_LARGE,
38
				WeightedList.of(),
39
				SoundEvents.BREEZE_WIND_CHARGE_BURST
40
			);
41
	}
42
}
43

Decompiled Minecraft 26.3 source of BreezeWindCharge (net/minecraft/world/entity/projectile/hurtingprojectile/windcharge/BreezeWindCharge.java) with Mojang official mappings, stored verbatim on the site.