Examples of Fluid


Examples of net.minecraftforge.fluids.Fluid

     
    case getCoolantAmountMax:
      return new Object[] { reactor.getCoolantContainer().getCapacity() };

    case getCoolantType: {
      Fluid fluidType = reactor.getCoolantContainer().getCoolantType();
      if(fluidType == null) {
        return null;
      }
      else {
        return new Object[] { fluidType.getName() };
      }
    }

    case getHotFluidAmount:
      return new Object[] { reactor.getCoolantContainer().getVaporAmount() };
   
    case getHotFluidAmountMax:
      return new Object[] { reactor.getCoolantContainer().getCapacity() };

    case getHotFluidType: {
      Fluid fluidType = reactor.getCoolantContainer().getVaporType();
      if(fluidType == null) {
        return null;
      }
      else {
        return new Object[] { fluidType.getName() };
      }
    }
   
    case getFuelReactivity:
      return new Object[] { reactor.getFuelFertility() * 100f };
View Full Code Here

Examples of net.minecraftforge.fluids.Fluid

  }

  @Override
  public void onMultiblockServerTick() {
    if(isConnected() && getTurbine().getActive()) {
      Fluid steam = FluidRegistry.getFluid("steam");
     
      getTurbine().fill(MultiblockTurbine.TANK_INPUT, new FluidStack(steam, getTurbine().getMaxIntakeRate()), true);
    }
  }
View Full Code Here

Examples of net.minecraftforge.fluids.Fluid

    {
      GL11.glRotatef(270F, 0.0F, -1.0F, 0.0F);
      Minecraft.getMinecraft().renderEngine.bindTexture(MekanismUtils.getResource(ResourceType.RENDER, "PortableTank.png"));
     
      ItemBlockMachine itemMachine = (ItemBlockMachine)item.getItem();
      Fluid fluid = itemMachine.getFluidStack(item) != null ? itemMachine.getFluidStack(item).getFluid() : null;
      portableTankRenderer.render(fluid, itemMachine.getPrevScale(item), false, null, -0.5, -0.5, -0.5);
    }
    else {
      if(item.getItem() instanceof ItemBlockMachine)
      {
View Full Code Here

Examples of net.minecraftforge.fluids.Fluid

    renderAModelAt((TileEntityPortableTank)tileEntity, x, y, z, partialTick);
  }

  private void renderAModelAt(TileEntityPortableTank tileEntity, double x, double y, double z, float partialTick)
  {
    Fluid fluid = tileEntity.fluidTank.getFluid() != null ? tileEntity.fluidTank.getFluid().getFluid() : null;
    render(fluid, tileEntity.prevScale, tileEntity.isActive, tileEntity.valve > 0 ? tileEntity.valveFluid : null, x, y, z);
  }
View Full Code Here

Examples of net.minecraftforge.fluids.Fluid

    }
    else {
      pipe.currentScale = targetScale;
    }

    Fluid fluid = pipe.getTransmitterNetwork().refFluid;
    float scale = pipe.currentScale;

    if(scale > 0.01 && fluid != null)
    {
      push();

      MekanismRenderer.glowOn(fluid.getLuminosity());

      CCRenderState.changeTexture(MekanismRenderer.getBlocksTexture());
      GL11.glTranslated(pos.x, pos.y, pos.z);

      boolean gas = fluid.isGaseous();

      for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
      {
        if(pipe.getConnectionType(side) == ConnectionType.NORMAL)
        {
View Full Code Here

Examples of net.minecraftforge.fluids.Fluid

  }

  @Override
  public boolean canMerge(List<ITransmitterNetwork<?, ?>> networks)
  {
    Fluid found = null;

    for(ITransmitterNetwork<?, ?> network : networks)
    {
      if(network instanceof FluidNetwork)
      {
View Full Code Here

Examples of net.minecraftforge.fluids.Fluid

        ConfigManagerCore.initialize(new File(event.getModConfigurationDirectory(), GalacticraftCore.CONFIG_FILE));
        FMLCommonHandler.instance().bus().register(new ConfigManagerCore());
        EnergyConfigHandler.setDefaultValues(new File(event.getModConfigurationDirectory(), GalacticraftCore.POWER_CONFIG_FILE));
        ChunkLoadingCallback.loadConfig(new File(event.getModConfigurationDirectory(), GalacticraftCore.CHUNKLOADER_CONFIG_FILE));

        GalacticraftCore.gcFluidOil = new Fluid("oil").setDensity(800).setViscosity(1500);
        GalacticraftCore.gcFluidFuel = new Fluid("fuel").setDensity(400).setViscosity(900);
        FluidRegistry.registerFluid(GalacticraftCore.gcFluidOil);
        FluidRegistry.registerFluid(GalacticraftCore.gcFluidFuel);
        GalacticraftCore.fluidOil = FluidRegistry.getFluid("oil");
        GalacticraftCore.fluidFuel = FluidRegistry.getFluid("fuel");
View Full Code Here

Examples of net.minecraftforge.fluids.Fluid

        {
            fluidTank.setFluid(null);
        }
        else
        {
            Fluid fluid = FluidRegistry.getFluid(fluidID);
            fluidTank.setFluid(new FluidStack(fluid, amount));
        }

        return fluidTank;
    }
View Full Code Here

Examples of net.minecraftforge.fluids.Fluid

    {
        GL11.glDisable(GL11.GL_LIGHTING);
        GL11.glEnable(GL11.GL_BLEND);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
       
        Fluid fluid = stack.getFluid();
        CCRenderState.setColour(fluid.getColor(stack)<<8|alpha);       
        TextureUtils.bindAtlas(fluid.getSpriteNumber());
        return TextureUtils.safeIcon(fluid.getIcon(stack));
    }
View Full Code Here

Examples of net.minecraftforge.fluids.Fluid

  {
    if(fluid == null)
    {
      if(FluidRegistry.getFluid(getName()) == null)
      {
        fluid = new Fluid(getName()).setGaseous(true);
        FluidRegistry.registerFluid(fluid);
      }
      else {
        fluid = FluidRegistry.getFluid(getName());
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.