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);
}
Aggregations