Search in sources :

Example 11 with EntityFlyingBlock

use of icbm.classic.content.entity.EntityFlyingBlock in project ICBM-Classic by BuiltBrokenModding.

the class BlastRedmatter method spawnFlyingBlock.

protected void spawnFlyingBlock(BlockPos blockPos, IBlockState blockState) {
    final EntityFlyingBlock entity = new EntityFlyingBlock(this.world(), blockPos, blockState);
    entity.yawChange = 50 * this.world().rand.nextFloat();
    entity.pitchChange = 50 * this.world().rand.nextFloat();
    this.world().spawnEntity(entity);
    // TODO why? this should just be an apply velocity call
    this.handleEntities(entity);
}
Also used : EntityFlyingBlock(icbm.classic.content.entity.EntityFlyingBlock)

Aggregations

EntityFlyingBlock (icbm.classic.content.entity.EntityFlyingBlock)11 Block (net.minecraft.block.Block)6 Entity (net.minecraft.entity.Entity)5 Pos (com.builtbroken.mc.imp.transform.vector.Pos)4 IFluidBlock (net.minecraftforge.fluids.IFluidBlock)4 IBlockState (net.minecraft.block.state.IBlockState)3 EntityPlayer (net.minecraft.entity.player.EntityPlayer)3 AxisAlignedBB (net.minecraft.util.AxisAlignedBB)3 BlockPos (net.minecraft.util.math.BlockPos)3 Location (com.builtbroken.mc.imp.transform.vector.Location)2 EntityExplosion (icbm.classic.content.entity.EntityExplosion)2 EntityMissile (icbm.classic.content.entity.EntityMissile)2 BlockLiquid (net.minecraft.block.BlockLiquid)2 AxisAlignedBB (net.minecraft.util.math.AxisAlignedBB)2 EulerAngle (com.builtbroken.mc.imp.transform.rotation.EulerAngle)1 IMissile (icbm.classic.api.caps.IMissile)1 IBlast (icbm.classic.api.explosion.IBlast)1 BlastAntimatter (icbm.classic.content.blast.threaded.BlastAntimatter)1 TileEntityExplosive (icbm.classic.content.blocks.explosive.TileEntityExplosive)1 EntityExplosive (icbm.classic.content.entity.EntityExplosive)1