Package crazypants.enderio.conduit.item.filter

Examples of crazypants.enderio.conduit.item.filter.ModItemFilter


  public IMessage onMessage(PacketModItemFilter message, MessageContext ctx) {
    IItemConduit conduit = message.getTileCasted(ctx);
    if(conduit == null) {
      return null;
    }
    ModItemFilter filter;
    if(message.isInput) {
      filter = (ModItemFilter)conduit.getInputFilter(message.dir)
    } else {
      filter = (ModItemFilter)conduit.getOutputFilter(message.dir);
    }
   
    filter.setMod(message.index, message.name);
   
    if(message.isInput) {
      conduit.setInputFilter(message.dir, filter)
    } else {
      conduit.setOutputFilter(message.dir, filter);
View Full Code Here

TOP

Related Classes of crazypants.enderio.conduit.item.filter.ModItemFilter

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.