Codota Logo
IItemList.add
Code IndexAdd Codota to your IDE (free)

How to use
add
method
in
appeng.api.storage.data.IItemList

Best Java code snippets using appeng.api.storage.data.IItemList.add (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public IItemList<IAEItemStack> getAvailableItems( final IItemList<IAEItemStack> out )
{
  for( final IAEItemStack is : this.localCache )
  {
    out.add( is );
  }
  return out;
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public void postChange( IBaseMonitor<IAEFluidStack> monitor, Iterable<IAEFluidStack> change, IActionSource actionSource )
{
  for( final IAEFluidStack is : change )
  {
    this.fluids.add( is );
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public void postChange( final IBaseMonitor<IAEItemStack> monitor, final Iterable<IAEItemStack> change, final IActionSource source )
{
  for( final IAEItemStack is : change )
  {
    this.items.add( is );
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public IItemList<IAEItemStack> getAvailableItems( final IItemList out )
{
  for( final IAEItemStack ais : this.itemListCache )
  {
    out.add( ais );
  }
  return out;
}
origin: AppliedEnergistics/Applied-Energistics-2

private void addMissing( final IAEItemStack extra )
{
  this.missingCache.add( extra );
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public IAEItemStack injectItems( final IAEItemStack input, final Actionable mode, final IActionSource src )
{
  if( input == null )
  {
    return null;
  }
  if( mode == Actionable.MODULATE )
  {
    if( this.logInjections )
    {
      this.injectedCache.add( input );
    }
    this.localCache.add( input );
  }
  return null;
}
origin: AppliedEnergistics/Applied-Energistics-2

public void addEmitable( final IAEItemStack i )
{
  this.waitingFor.add( i );
  this.postCraftingStatusChange( i );
}
origin: AppliedEnergistics/Applied-Energistics-2

void addMissing( IAEItemStack what )
{
  what = what.copy();
  this.missing.add( what );
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public IItemList<T> getAvailableItems( final IItemList<T> out )
{
  for( final T item : this.getCellItems() )
  {
    out.add( item );
  }
  return out;
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public IItemList<IAEItemStack> getAvailableItems( final IItemList out )
{
  for( final IAEItemStack ais : this.getStoredItems() )
  {
    out.add( ais );
  }
  return out;
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public void postChange( final IBaseMonitor<IAEItemStack> monitor, final Iterable<IAEItemStack> change, final IActionSource actionSource )
{
  for( IAEItemStack is : change )
  {
    is = is.copy();
    is.setStackSize( 1 );
    this.list.add( is );
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public void add( T option )
{
  if( option != null && option.isCraftable() )
  {
    option = option.copy();
    option.setCraftable( false );
  }
  this.target.add( option );
}
origin: AppliedEnergistics/Applied-Energistics-2

void addTask( IAEItemStack what, final long crafts, final ICraftingPatternDetails details, final int depth )
{
  if( crafts > 0 )
  {
    what = what.copy();
    what.setStackSize( what.getStackSize() * crafts );
    this.crafting.add( what );
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

public void postUpdate( final IAEFluidStack is )
{
  final IAEFluidStack st = this.list.findPrecise( is );
  if( st != null )
  {
    st.reset();
    st.add( is );
  }
  else
  {
    this.list.add( is );
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

public void postUpdate( final IAEItemStack is )
{
  final IAEItemStack st = this.list.findPrecise( is );
  if( st != null )
  {
    st.reset();
    st.add( is );
  }
  else
  {
    this.list.add( is );
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

protected CreativeCellInventory( final ItemStack o )
{
  final CellConfig cc = new CellConfig( o );
  for( final ItemStack is : cc )
  {
    if( !is.isEmpty() )
    {
      final IAEItemStack i = AEItemStack.fromItemStack( is );
      i.setStackSize( Integer.MAX_VALUE );
      this.itemListCache.add( i );
    }
  }
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public IItemList<IAEItemStack> getAvailableItems( final IItemList<IAEItemStack> out )
{
  if( !this.target.getOutputSlot().getStackInSlot( 0 ).isEmpty() )
  {
    out.add( AEItemStack.fromItemStack( this.target.getOutputSlot().getStackInSlot( 0 ) ) );
  }
  return out;
}
origin: AppliedEnergistics/Applied-Energistics-2

private IItemList<IAEItemStack> readList( final NBTTagList tag )
{
  final IItemList<IAEItemStack> out = AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ).createList();
  if( tag == null )
  {
    return out;
  }
  for( int x = 0; x < tag.tagCount(); x++ )
  {
    final IAEItemStack ais = AEItemStack.fromNBT( tag.getCompoundTagAt( x ) );
    if( ais != null )
    {
      out.add( ais );
    }
  }
  return out;
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public IAEItemStack injectItems( final IAEItemStack input, final Actionable type, final IActionSource src )
{
  if( this.hasPermission( src ) )
  {
    if( AEApi.instance().definitions().items().biometricCard().isSameAs( input.createItemStack() ) )
    {
      if( this.canAccept( input ) )
      {
        if( type == Actionable.SIMULATE )
        {
          return null;
        }
        this.getStoredItems().add( input );
        this.securityTile.inventoryChanged();
        return null;
      }
    }
  }
  return input;
}
origin: AppliedEnergistics/Applied-Energistics-2

@Override
public void readFromNBT( final NBTTagCompound data )
{
  super.readFromNBT( data );
  this.cm.readFromNBT( data );
  if( data.hasKey( "paintedColor" ) )
  {
    this.paintedColor = AEColor.values()[data.getByte( "paintedColor" )];
  }
  this.securityKey = data.getLong( "securityKey" );
  this.getConfigSlot().readFromNBT( data, "config" );
  final NBTTagCompound storedItems = data.getCompoundTag( "storedItems" );
  for( final Object key : storedItems.getKeySet() )
  {
    final NBTBase obj = storedItems.getTag( (String) key );
    if( obj instanceof NBTTagCompound )
    {
      this.inventory.getStoredItems().add( AEItemStack.fromItemStack( new ItemStack( (NBTTagCompound) obj ) ) );
    }
  }
}
appeng.api.storage.dataIItemListadd

Popular methods of IItemList

  • isEmpty
  • findPrecise
  • resetStatus
  • size
  • forEach
  • getFirstItem
  • addCrafting
  • addRequestable
  • addStorage
  • findFuzzy
  • iterator
  • spliterator
  • iterator,
  • spliterator

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • findViewById (Activity)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now