Class RedstoneProgram.Channel

java.lang.Object
com.petrolpark.compat.create.common.redstone.programmer.RedstoneProgram.Channel
All Implemented Interfaces:
com.simibubi.create.content.redstone.link.IRedstoneLinkable
Enclosing class:
RedstoneProgram

public class RedstoneProgram.Channel extends Object implements com.simibubi.create.content.redstone.link.IRedstoneLinkable
  • Field Details

    • networkKey

      public final net.createmod.catnip.data.Couple<com.simibubi.create.content.redstone.link.RedstoneLinkNetworkHandler.Frequency> networkKey
    • sequence

      protected int[] sequence
  • Constructor Details

    • Channel

      protected Channel(RedstoneProgram.ChannelData data)
    • Channel

      protected Channel(net.createmod.catnip.data.Couple<com.simibubi.create.content.redstone.link.RedstoneLinkNetworkHandler.Frequency> networkKey, int[] sequence)
  • Method Details

    • asData

      public RedstoneProgram.ChannelData asData()
    • updateNetwork

      protected void updateNetwork()
    • getStrength

      public int getStrength(int position)
    • setStrength

      public void setStrength(int position, int strength)
    • clear

      public void clear()
    • getTransmittedStrength

      public int getTransmittedStrength()
      Specified by:
      getTransmittedStrength in interface com.simibubi.create.content.redstone.link.IRedstoneLinkable
    • setReceivedStrength

      public void setReceivedStrength(int power)
      Specified by:
      setReceivedStrength in interface com.simibubi.create.content.redstone.link.IRedstoneLinkable
    • isListening

      public boolean isListening()
      Specified by:
      isListening in interface com.simibubi.create.content.redstone.link.IRedstoneLinkable
    • isAlive

      public boolean isAlive()
      Specified by:
      isAlive in interface com.simibubi.create.content.redstone.link.IRedstoneLinkable
    • getNetworkKey

      public net.createmod.catnip.data.Couple<com.simibubi.create.content.redstone.link.RedstoneLinkNetworkHandler.Frequency> getNetworkKey()
      Specified by:
      getNetworkKey in interface com.simibubi.create.content.redstone.link.IRedstoneLinkable
    • getLocation

      public net.minecraft.core.BlockPos getLocation()
      Specified by:
      getLocation in interface com.simibubi.create.content.redstone.link.IRedstoneLinkable
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object