content: package mods.eln.transparentnode.teleporter;
  
  import mods.eln.misc.Direction;
  import mods.eln.misc.LRDU;
  import mods.eln.node.GhostNode;
  import mods.eln.sim.ElectricalLoad;
  import mods.eln.sim.ThermalLoad;
  import net.minecraft.entity.EntityLivingBase;
  import net.minecraft.item.ItemStack;
  import org.jetbrains.annotations.NotNull;
  import org.jetbrains.annotations.Nullable;
  
  public class TeleporterPowerNode extends GhostNode {
  
      @Override
      public void initializeFromThat(@NotNull Direction front,
                                     @Nullable EntityLivingBase entityLiving, @Nullable ItemStack itemStack) {
          connect();
  
      }
  
      @Override
      public int getSideConnectionMask(Direction directionA, LRDU lrduA) {
          if (e == null) return 0;
          if (directionA == Direction.YP || directionA == Direction.YN) return 0;
          if (lrduA != LRDU.Down) return 0;
          return maskElectricalPower;
      }
  
      @Override
      public ThermalLoad getThermalLoad(Direction directionA, LRDU lrduA, int mask) {
  
          return null;
      }
  
      @Override
      public ElectricalLoad getElectricalLoad(Direction directionB, LRDU lrduB, int mask) {
          if (e == null) return null;
          return e.powerLoad;
      }
  
      @Override
      public void initializeFromNBT() {
  
  
      }
  
      void setElement(TeleporterElement e) {
          this.e = e;
          //reconnect();
      }
  
      TeleporterElement e;
  }
  