Package erogenousbeef.bigreactors.common.multiblock.tileentity.creative

Examples of erogenousbeef.bigreactors.common.multiblock.tileentity.creative.TileEntityReactorCreativeCoolantPort


 
  @Override
  public TileEntity createNewTileEntity(World world, int metadata) {
    switch(metadata) {
      case REACTOR_CREATIVE_COOLANT_PORT:
        return new TileEntityReactorCreativeCoolantPort();
      case TURBINE_CREATIVE_FLUID_PORT:
        return new TileEntityTurbineCreativeSteamGenerator();
      default:
        return null;
    }
View Full Code Here


    ItemStack currentEquippedItem = player.getCurrentEquippedItem();
   
    TileEntity te = world.getTileEntity(x, y, z);
    if(te instanceof TileEntityReactorCreativeCoolantPort) {
      TileEntityReactorCreativeCoolantPort cp = (TileEntityReactorCreativeCoolantPort)te;
      if(currentEquippedItem == null || StaticUtils.Inventory.isPlayerHoldingWrench(player)) {
        // Use wrench to change inlet/outlet state
        cp.setInlet(!cp.isInlet(), true);
      }
      else {
        cp.forceAddWater();
      }
      return true;
    }
   
    return false;
View Full Code Here

TOP

Related Classes of erogenousbeef.bigreactors.common.multiblock.tileentity.creative.TileEntityReactorCreativeCoolantPort

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.