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 entity, net.minecraft.world.damagesource.DamageSource ds, net.minecraft.world.level.ExplosionDamageCalculator edc, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Level.ExplosionInteraction explosionMode, net.minecraft.core.particles.ParticleOptions small, net.minecraft.core.particles.ParticleOptions big, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Returning a null explosion will cause this event to be canceled.voidonSpawnLightning(net.minecraft.world.level.chunk.LevelChunk chunk, 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, 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 entity, net.minecraft.world.damagesource.DamageSource ds, net.minecraft.world.level.ExplosionDamageCalculator edc, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Level.ExplosionInteraction explosionMode, net.minecraft.core.particles.ParticleOptions small, net.minecraft.core.particles.ParticleOptions big, net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> soundEvent, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) 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
-