Package com.hbm_m.interfaces
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 TypeMethodDescriptionbooleanonDetonate(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 если нет
-