Package net.minecraftforge.fluids

Examples of net.minecraftforge.fluids.IFluidHandler


        TileEntity nearbyTile = robot.worldObj.getTileEntity(station.x() + dir.offsetX, station.y()
            + dir.offsetY, station.z()
            + dir.offsetZ);

        if (nearbyTile != null && nearbyTile instanceof IFluidHandler) {
          IFluidHandler handler = (IFluidHandler) nearbyTile;

          FluidStack drainable = robot.drain(ForgeDirection.UNKNOWN, FluidContainerRegistry.BUCKET_VOLUME,
              false);

          if (drainable != null) {
            drainable = drainable.copy();

            int filled = handler.fill(station.side, drainable, true);

            if (filled > 0) {
              drainable.amount = filled;
              robot.drain(ForgeDirection.UNKNOWN, drainable, true);
              unloaded += filled;
View Full Code Here

TOP

Related Classes of net.minecraftforge.fluids.IFluidHandler

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.