Examples of canAccept()


Examples of appeng.api.me.util.IMEInventoryHandler.canAccept()

  public boolean canFill(ForgeDirection from, Fluid fluid)
  {
    if (grid != null)
    {
      IMEInventoryHandler cellArray = grid.getCellArray();
      return cellArray != null && fluid != null && cellArray.canAccept(Util.createItemStack(new ItemStack(FLUIDDISPLAY.getItemInstance(), 1, fluid.getID())));
    }
    return false;
  }

  @Override
View Full Code Here

Examples of appeng.api.storage.IMEInventoryHandler.canAccept()

  public boolean canFill(ForgeDirection from, Fluid fluid)
  {
    try
    {
      IMEInventoryHandler h = getHandler( StorageChannel.FLUIDS );
      return h.canAccept( AEFluidStack.create( new FluidStack( fluid, 1 ) ) );
    }
    catch (ChestNoHandler ignored)
    {
    }
    return false;
View Full Code Here

Examples of fbench.graph.model.GraphModel.canAccept()

            return false;
        GraphModel mdl = ((GraphView) comp).getModel();
        //System.out.println("canImport: " + mdl);
        if (!(mdl instanceof GraphModel))
            return false;
        return mdl.canAccept(fl.getName());
    }

    public boolean importData(JComponent c, Transferable t) {
        String elname = ((LibraryTreeNode) libraryTree.getSelectionPath()
                .getLastPathComponent()).getText();
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.