Package extracells.tileentity

Examples of extracells.tileentity.TileEntityTerminalFluid


  @Override
  public void mouseClicked(int posX, int posY, int mouseX, int mouseY)
  {
    if (fluid != null && isPointInRegion(posX, posY, sizeX, sizeY, mouseX, mouseY))
    {
      TileEntityTerminalFluid terminalFluid = guiTerminalFluid.tileEntity;
      PacketDispatcher.sendPacketToServer(new PacketTerminalFluid(terminalFluid.worldObj, terminalFluid.xCoord, terminalFluid.yCoord, terminalFluid.zCoord, fluid).makePacket());
      selected = true;
      guiTerminalFluid.updateSelected(this);
      guiTerminalFluid.currentFluidAmount = amount;
      guiTerminalFluid.currentFluidName = fluid.getLocalizedName();
View Full Code Here


  @Override
  public void execute(EntityPlayer player, Side side) throws ProtocolException
  {
    if (side.isServer())
    {
      TileEntityTerminalFluid tile = (TileEntityTerminalFluid) world.getBlockTileEntity(x, y, z);
      tile.setCurrentFluid(fluidID);
    }
  }
View Full Code Here

  @Override
  public void execute(EntityPlayer player, Side side) throws ProtocolException
  {
    if (side.isServer())
    {
      TileEntityTerminalFluid tile = (TileEntityTerminalFluid) world.getBlockTileEntity(x, y, z);
      switch (type)
      {
      case 0:
        tile.requestFluid(new FluidStack(fluidID, amount));
        break;
      case 1:
        tile.setCurrentFluid(fluidID);
        break;
      default:
        break;
      }
    }
View Full Code Here

  }

  @Override
  public TileEntity createNewTileEntity(World world)
  {
    return new TileEntityTerminalFluid();
  }
View Full Code Here

    int[] color =
    { 0, 0, 0 };
    TileEntity blockTE = world.getBlockTileEntity(x, y, z);
    if (blockTE instanceof TileEntityTerminalFluid)
    {
      TileEntityTerminalFluid terminalTE = (TileEntityTerminalFluid) blockTE;
      switch (terminalTE.getColor())
      {
      case -1:
        color = fluix.clone();
        break;
      case 0:
        color = blue.clone();
        break;
      case 1:
        color = black.clone();
        break;
      case 2:
        color = white.clone();
        break;
      case 3:
        color = brown.clone();
        break;
      case 4:
        color = red.clone();
        break;
      case 5:
        color = yellow.clone();
        break;
      case 6:
        color = green.clone();
        break;
      }

      boolean active = terminalTE.isMachineActive();

      ts.setBrightness(15 << 2 | 15 << 0);

      if (active)
        ts.setBrightness(15 << 20 | 15 << 4);
View Full Code Here

TOP

Related Classes of extracells.tileentity.TileEntityTerminalFluid

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.