Class ServerWorldMixin

java.lang.Object
de.z0rdak.yawp.mixin.ServerWorldMixin

public class ServerWorldMixin extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.util.random.WeightedList<net.minecraft.core.particles.ExplosionParticleInfo> weightedList, 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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.util.random.WeightedList<net.minecraft.core.particles.ExplosionParticleInfo> weightedList, 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