Class ExplosionKubeEvent.After

java.lang.Object
dev.latvian.mods.kubejs.level.ExplosionKubeEvent
dev.latvian.mods.kubejs.level.ExplosionKubeEvent.After
All Implemented Interfaces:
KubeEvent, KubeLevelEvent
Enclosing class:
ExplosionKubeEvent

@Info("Invoked right after an explosion happens.\n") public static class ExplosionKubeEvent.After extends ExplosionKubeEvent
  • Constructor Details

    • After

      public After(net.minecraft.world.level.Level level, net.minecraft.world.level.Explosion explosion, List<net.minecraft.world.entity.Entity> affectedEntities)
  • Method Details

    • getAffectedEntities

      @Info("Gets a list of all entities affected by the explosion.") public EntityArrayList getAffectedEntities()
    • removeAffectedEntity

      @Info("Remove an entity from the list of affected entities.") public void removeAffectedEntity(net.minecraft.world.entity.Entity entity)
    • removeAllAffectedEntities

      @Info("Remove all entities from the list of affected entities.") public void removeAllAffectedEntities()
    • getAffectedBlocks

      @Info("Gets a list of all blocks affected by the explosion.") public List<LevelBlock> getAffectedBlocks()
    • removeAffectedBlock

      @Info("Remove a block from the list of affected blocks.") public void removeAffectedBlock(LevelBlock block)
    • removeAllAffectedBlocks

      @Info("Remove all blocks from the list of affected blocks.") public void removeAllAffectedBlocks()
    • removeKnockback

      @Info("Remove all knockback from all affected *players*.") public void removeKnockback()