use of ValkyrienWarfareBase.PhysicsManagement.PhysicsObject in project Valkyrien-Warfare-Revamped by ValkyrienWarfare.
the class BlockEtherCompressor method getBlockForce.
@Override
public Vector getBlockForce(World world, BlockPos pos, IBlockState state, Entity shipEntity, double secondsToApply) {
PhysicsWrapperEntity wrapper = (PhysicsWrapperEntity) shipEntity;
PhysicsObject obj = wrapper.wrapping;
IBlockState controllerState = obj.VKChunkCache.getBlockState(pos);
TileEntity worldTile = obj.VKChunkCache.getTileEntity(pos);
if (worldTile == null) {
return null;
}
if (worldTile instanceof TileEntityEtherCompressor) {
TileEntityEtherCompressor engineTile = (TileEntityEtherCompressor) worldTile;
return engineTile.getForceOutput(world, pos, state, wrapper, secondsToApply);
}
return null;
}
use of ValkyrienWarfareBase.PhysicsManagement.PhysicsObject in project Valkyrien-Warfare-Revamped by ValkyrienWarfare.
the class BlockBalloonBurner method getTileEntity.
private BalloonBurnerTileEntity getTileEntity(World world, BlockPos pos, IBlockState state, Entity shipEntity) {
PhysicsWrapperEntity wrapper = (PhysicsWrapperEntity) shipEntity;
PhysicsObject obj = wrapper.wrapping;
IBlockState controllerState = obj.VKChunkCache.getBlockState(pos);
TileEntity worldTile = obj.VKChunkCache.getTileEntity(pos);
if (worldTile == null) {
return null;
}
if (worldTile instanceof BalloonBurnerTileEntity) {
BalloonBurnerTileEntity burnerTile = (BalloonBurnerTileEntity) worldTile;
return burnerTile;
}
return null;
}
Aggregations