Package de.z0rdak.yawp.mixin
Class ServerWorldMixin
java.lang.Object
de.z0rdak.yawp.mixin.ServerWorldMixin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonIgniteExplosive(net.minecraft.world.entity.Entity source, net.minecraft.world.damagesource.DamageSource damageSource, net.minecraft.world.level.ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, net.minecraft.world.level.Level.ExplosionInteraction explosionInteraction, net.minecraft.core.particles.ParticleOptions smallExplosionParticles, net.minecraft.core.particles.ParticleOptions largeExplosionParticles, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> explosionSound, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.minecraft.world.level.Explosion> cir) Returning a null explosion will cause this event to be canceled.voidonSpawnLightning(net.minecraft.world.level.chunk.LevelChunk chunk, int randomTickSpeed, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci, net.minecraft.world.level.ChunkPos chunkPos, boolean bl, int i, int j, net.minecraft.util.profiling.ProfilerFiller profiler, net.minecraft.core.BlockPos blockPos, net.minecraft.world.DifficultyInstance localDifficulty, boolean b, net.minecraft.world.entity.LightningBolt lightningEntity) Injection for lightning protection flag.
-
Constructor Details
-
ServerWorldMixin
public ServerWorldMixin()
-
-
Method Details
-
onSpawnLightning
public void onSpawnLightning(net.minecraft.world.level.chunk.LevelChunk chunk, int randomTickSpeed, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci, net.minecraft.world.level.ChunkPos chunkPos, boolean bl, int i, int j, net.minecraft.util.profiling.ProfilerFiller profiler, net.minecraft.core.BlockPos blockPos, net.minecraft.world.DifficultyInstance localDifficulty, boolean b, net.minecraft.world.entity.LightningBolt lightningEntity) Injection for lightning protection flag. It prevents lightning strikes which are not hitting entities and would potentially cause fire. -
onIgniteExplosive
public void onIgniteExplosive(net.minecraft.world.entity.Entity source, net.minecraft.world.damagesource.DamageSource damageSource, net.minecraft.world.level.ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, net.minecraft.world.level.Level.ExplosionInteraction explosionInteraction, net.minecraft.core.particles.ParticleOptions smallExplosionParticles, net.minecraft.core.particles.ParticleOptions largeExplosionParticles, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> explosionSound, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.minecraft.world.level.Explosion> cir) Returning a null explosion will cause this event to be canceled. An arrow on fire or fire charge shot by an e.g. dispenser will cause the type of the explosion to be ExplosionSourceType.TNT
-