Package erogenousbeef.bigreactors.common.multiblock.tileentity

Examples of erogenousbeef.bigreactors.common.multiblock.tileentity.TileEntityTurbineFluidPort


  public TileEntity createNewTileEntity(World world, int metadata) {
    if(metadata == METADATA_POWERTAP) {
      return new TileEntityTurbinePowerTap();
    }
    else if(metadata == METADATA_FLUIDPORT) {
      return new TileEntityTurbineFluidPort();
    }
    else if(metadata == METADATA_BEARING) {
      // Does jack-all different except for store display lists on the client
      return new TileEntityTurbineRotorBearing();
    }
View Full Code Here


    int metadata = world.getBlockMetadata(x, y, z);
   
    if(metadata == METADATA_FLUIDPORT && StaticUtils.Inventory.isPlayerHoldingWrench(player)) {
      TileEntity te = world.getTileEntity(x, y, z);
      if(te instanceof TileEntityTurbineFluidPort) {
        TileEntityTurbineFluidPort fluidPort = (TileEntityTurbineFluidPort)te;
        FluidFlow flow = fluidPort.getFlowDirection();
        fluidPort.setFluidFlowDirection(flow == FluidFlow.In ? FluidFlow.Out : FluidFlow.In, true);
        return true;
      }
    }
   
    if(world.isRemote) {
View Full Code Here

TOP

Related Classes of erogenousbeef.bigreactors.common.multiblock.tileentity.TileEntityTurbineFluidPort

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.