congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ITankAccess.setTanksDirty
Code IndexAdd Tabnine to your IDE (free)

How to use
setTanksDirty
method
in
com.enderio.core.api.common.util.ITankAccess

Best Java code snippets using com.enderio.core.api.common.util.ITankAccess.setTanksDirty (Showing top 7 results out of 315)

origin: SleepyTrousers/EnderCore

@Override
@Nullable
public FluidStack drain(FluidStack resource) {
 FluidTank[] outputTanks = tankAccess.getOutputTanks();
 if (outputTanks.length >= 1 && outputTanks[0] != null) {
  tankAccess.setTanksDirty();
  return outputTanks[0].drain(resource, true);
 }
 return null;
}
origin: SleepyTrousers/EnderIO

@Override
protected void onContentsChanged() {
 super.onContentsChanged();
 if (tile instanceof ITankAccess) {
  ((ITankAccess) tile).setTanksDirty();
 } else if (tile != null) {
  tile.markDirty();
 }
}
origin: SleepyTrousers/EnderCore

@Override
protected void onContentsChanged() {
 super.onContentsChanged();
 if (tile instanceof ITankAccess) {
  ((ITankAccess) tile).setTanksDirty();
 } else if (tile != null) {
  tile.markDirty();
 }
}
origin: SleepyTrousers/EnderCore

@Override
public int fill(FluidStack resource) {
 FluidTank inputTank = tankAccess.getInputTank(resource);
 if (inputTank != null) {
  tankAccess.setTanksDirty();
  return inputTank.fill(resource, true);
 }
 return 0;
}
origin: SleepyTrousers/EnderIO

@Override
public void setTanksDirty() {
 if (tank != null) {
  FluidStack stack = tank.getFluid();
  if (stack != null && stack.amount > 0) {
   for (ITankAccess parent : parents) {
    FluidTank ptank = parent.getInputTank(stack);
    if (ptank != null) {
     stack.amount -= ptank.fill(stack, true);
     parent.setTanksDirty();
     if (stack.amount <= 0) {
      return;
     }
    }
   }
  }
  tank.setCapacity(0);
  parents.clear();
 }
}
origin: SleepyTrousers/EnderCore

tank.setTanksDirty();
origin: SleepyTrousers/EnderCore

tank.setTanksDirty();
if (doFill) {
 if (fill.remainder.itemStack.isEmpty()) {
com.enderio.core.api.common.utilITankAccesssetTanksDirty

Javadoc

Will be called after a tank that was returned by one of the other methods was manipulated.

Popular methods of ITankAccess

  • getInputTank
    Find tank to insert fluid.
  • getOutputTanks
    Get tank(s) to remove liquid from.

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now