Package appeng.parts.layers

Source Code of appeng.parts.layers.LayerIPowerEmitter

package appeng.parts.layers;

import net.minecraftforge.common.util.ForgeDirection;
import appeng.api.parts.IPart;
import appeng.api.parts.LayerBase;
import buildcraft.api.power.IPowerEmitter;

public class LayerIPowerEmitter extends LayerBase implements IPowerEmitter
{

  @Override
  public boolean canEmitPowerFrom(ForgeDirection side)
  {
    IPart part = getPart( side );
    if ( part instanceof IPowerEmitter )
      return ((IPowerEmitter) part).canEmitPowerFrom( side );
    return false;
  }
}
TOP

Related Classes of appeng.parts.layers.LayerIPowerEmitter

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.