Examples of drain()


Examples of extracells.tileentity.TileEntityCertusTank.drain()

              } else
              {
                entityplayer.inventory.mainInventory[entityplayer.inventory.currentItem] = filled;
              }
            }
            tank.drain(ForgeDirection.UNKNOWN, liquid.amount, true);
            return true;
          }
        }
      }
    }
View Full Code Here

Examples of flex.messaging.util.Base64.Encoder.drain()

    String credString = username + ":" + password;
    Encoder encoder = new Encoder( credString.length() );
    encoder.encode( credString.getBytes() );

    commandMessage.setBody( encoder.drain() );
    commandMessage.setDestination( DESTINATION );
    return commandMessage;
  }

  private static CommandMessage createLogoutCommandMessage()
View Full Code Here

Examples of forestry.api.core.IToolPipette.drain()

        FluidStack fillAmount = tank.drain(1000, false);
        int filled = pipette.fill(itemstack, fillAmount, true);
        tank.drain(filled, true);
      }
    } else {
      FluidStack potential = pipette.drain(itemstack, pipette.getCapacity(itemstack), false);
      if (potential != null)
        pipette.drain(itemstack, tank.fill(potential, true), true);
    }
  }
View Full Code Here

Examples of forestry.core.fluids.TankManager.drain()

  public FluidStack drain(ForgeDirection from, FluidStack resource, boolean doDrain) {
    TankManager tankManager = getTankManager();
    if (tankManager == null)
      return null;

    return tankManager.drain(from, resource, doDrain);
  }

  @Override
  public FluidStack drain(ForgeDirection from, int maxDrain, boolean doDrain) {
    TankManager tankManager = getTankManager();
View Full Code Here

Examples of forestry.core.fluids.tanks.StandardTank.drain()

    StandardTank tank = tile.getTankManager().get(slot);
    int liquidAmount = tank.getFluid().amount;

    if (pipette.canPipette(itemstack) && liquidAmount > 0) {
      if (liquidAmount > 0) {
        FluidStack fillAmount = tank.drain(1000, false);
        int filled = pipette.fill(itemstack, fillAmount, true);
        tank.drain(filled, true);
      }
    } else {
      FluidStack potential = pipette.drain(itemstack, pipette.getCapacity(itemstack), false);
View Full Code Here

Examples of javax.sound.sampled.Clip.drain()

            if (duration != null) {
                playClip(audioClip, duration.longValue());
            } else {
                playClip(audioClip, loops);
            }
            audioClip.drain();
            audioClip.close();
        } else {
            project.log("Can't get data from file " + file.getName());
        }
    }
View Full Code Here

Examples of javax.sound.sampled.Clip.drain()

            if (duration != null) {
                playClip(audioClip, duration.longValue());
            } else {
                playClip(audioClip, loops);
            }
            audioClip.drain();
            audioClip.close();
        } else {
            project.log("Can't get data from file " + file.getName());
        }
    }
View Full Code Here

Examples of javax.sound.sampled.Clip.drain()

            if (duration != null) {
                playClip(audioClip, duration.longValue());
            } else {
                playClip(audioClip, loops);
            }
            audioClip.drain();
            audioClip.close();
        } else {
            project.log("Can't get data from file " + file.getName());
        }
    }
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.drain()

                  total += numBytesRead;
                  line.write(myData, 0, numBytesRead);
                }
              }catch(Exception e) {}

              line.drain();
              line.stop();
            }
          }.start();

          return line;
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.drain()

         * by prematurely closing the line and exiting the VM.)
         *
         * Thanks to Margie Fitch for bringing me on the right path to this
         * solution.
         */
        line.drain();

        /*
         * All data are played. We can close the shop.
         */
        line.close();
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.