Package logisticspipes.modules

Source Code of logisticspipes.modules.ModuleCCBasedItemSink

package logisticspipes.modules;

import java.util.Collection;
import java.util.List;

import logisticspipes.interfaces.IQueueCCEvent;
import logisticspipes.modules.abstractmodules.LogisticsModule;
import logisticspipes.proxy.SimpleServiceLocator;
import logisticspipes.proxy.computers.objects.CCSinkResponder;
import logisticspipes.utils.OneList;
import logisticspipes.utils.SinkReply;
import logisticspipes.utils.item.ItemIdentifier;
import logisticspipes.utils.item.ItemIdentifierStack;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.IIcon;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class ModuleCCBasedItemSink extends LogisticsModule {
 
  private IQueueCCEvent  eventQueuer;

  @Override
  public void readFromNBT(NBTTagCompound nbttagcompound) {}
 
  @Override
  public void writeToNBT(NBTTagCompound nbttagcompound) {}
 
  @Override
  public void registerCCEventQueuer(IQueueCCEvent eventQueuer) {
    this.eventQueuer = eventQueuer;
  }
 
  @Override
  public int getX() {
    return _service.getX();
  }
 
  @Override
  public int getY() {
    return _service.getY();
  }
 
  @Override
  public int getZ() {
    return _service.getZ();
  }
 
  @Override
  public SinkReply sinksItem(ItemIdentifier stack, int bestPriority, int bestCustomPriority, boolean allowDefault, boolean includeInTransit) {
    return null;
  }
 
  @Override
  public LogisticsModule getSubModule(int slot) {
    return null;
  }
 
  @Override
  public void tick() {}
 
  @Override
  public boolean hasGenericInterests() {
    return true;
  }
 
  @Override
  public Collection<ItemIdentifier> getSpecificInterests() {
    return null;
  }
 
  @Override
  public boolean interestedInAttachedInventory() {
    return false;
  }
 
  @Override
  public boolean interestedInUndamagedID() {
    return false;
  }
 
  @Override
  public boolean recievePassive() {
    return false;
  }
 
  @Override
  public List<CCSinkResponder> queueCCSinkEvent(ItemIdentifierStack item) {
    CCSinkResponder resonse = new CCSinkResponder(item, _service.getSourceID(), eventQueuer);
    eventQueuer.queueEvent("ItemSink", new Object[]{SimpleServiceLocator.ccProxy.getAnswer(resonse)});
    return new OneList<CCSinkResponder>(resonse);
  }

  @Override
  @SideOnly(Side.CLIENT)
  public IIcon getIconTexture(IIconRegister register) {
    return register.registerIcon("logisticspipes:itemModule/ModuleCCBasedItemSink");
  }
}
TOP

Related Classes of logisticspipes.modules.ModuleCCBasedItemSink

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.