use of net.reikeb.electrona.entity.BombFallingEntity in project Electrona-Project by Max094Reikeb.
the class NuclearBomb method explode.
private void explode(ServerLevel world, BlockPos pos) {
BlockEntity tile = world.getBlockEntity(pos);
if (tile instanceof TileNuclearBomb) {
BombFallingEntity bombFallingEntity = new BombFallingEntity(world, (double) pos.getX() + 0.5D, pos.getY(), (double) pos.getZ() + 0.5D, world.getBlockState(pos), ((TileNuclearBomb) tile).isCharged(), ((TileNuclearBomb) tile).getNuclearCharge());
this.falling(bombFallingEntity);
world.addFreshEntity(bombFallingEntity);
}
}
Aggregations