Interface IDetonatable

All Known Implementing Classes:
AirBombBlock, AirNukeBombBlock, C4Block, DetMinerBlock, DudFugasBlock, DudNukeBlock, ExplosiveChargeBlock, GigaDetBlock, LaunchPadBlock, LaunchPadRustedBlock, NuclearChargeBlock, NukeFatManBlock, NukePrototypeBlock, SmokeBombBlock, UniversalMachinePartBlock, WasteChargeBlock

public interface IDetonatable
Интерфейс для блоков, которые могут быть активированы детонатором
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onDetonate(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.player.Player player)
    Вызывается когда детонатор отправляет сигнал на этот блок
  • Method Details

    • onDetonate

      boolean onDetonate(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.player.Player player)
      Вызывается когда детонатор отправляет сигнал на этот блок
      Parameters:
      level - Мир
      pos - Позиция блока
      state - Состояние блока
      player - Игрок, использовавший детонатор (может быть null)
      Returns:
      true если блок успешно отреагировал на сигнал, false если нет