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 damageSource, net.minecraft.world.level.ExplosionDamageCalculator behavior, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Level.ExplosionInteraction explosionMode, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.minecraft.world.level.Explosion> cir)
    Returning a null explosion will cause this event to be canceled.
    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.

    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, 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(@Nullable net.minecraft.world.entity.Entity entity, @Nullable net.minecraft.world.damagesource.DamageSource damageSource, @Nullable net.minecraft.world.level.ExplosionDamageCalculator behavior, double x, double y, double z, float power, boolean createFire, net.minecraft.world.level.Level.ExplosionInteraction explosionMode, 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