Class DynamicRedstoneHolderGlobal.DynamicRedstoneVirtual

java.lang.Object
org.cyclops.integrateddynamics.capability.dynamicredstone.DynamicRedstoneHolderGlobal.DynamicRedstoneVirtual
All Implemented Interfaces:
IDynamicRedstone
Enclosing class:
DynamicRedstoneHolderGlobal

public static class DynamicRedstoneHolderGlobal.DynamicRedstoneVirtual extends Object implements IDynamicRedstone
  • Constructor Details

    • DynamicRedstoneVirtual

      public DynamicRedstoneVirtual(DynamicRedstoneHolderGlobal holder, org.cyclops.cyclopscore.datastructure.DimPos dimPos, net.minecraft.core.Direction side)
  • Method Details

    • setRedstoneLevel

      public void setRedstoneLevel(int level, boolean direct)
      Description copied from interface: IDynamicRedstone
      Set the redstone level.
      Specified by:
      setRedstoneLevel in interface IDynamicRedstone
      Parameters:
      level - The redstone level.
      direct - If the redstone power should be direct.
    • updateRedstoneInfo

      public void updateRedstoneInfo(boolean strongPower)
    • getRedstoneLevel

      public int getRedstoneLevel()
      Description copied from interface: IDynamicRedstone
      Get the redstone level.
      Specified by:
      getRedstoneLevel in interface IDynamicRedstone
      Returns:
      The redstone level.
    • isDirect

      public boolean isDirect()
      Specified by:
      isDirect in interface IDynamicRedstone
      Returns:
      If the redstone power is direct.
    • setAllowRedstoneInput

      public void setAllowRedstoneInput(boolean allow)
      Description copied from interface: IDynamicRedstone
      Set if this side allows redstone to be inputted.
      Specified by:
      setAllowRedstoneInput in interface IDynamicRedstone
      Parameters:
      allow - If it allows input.
    • isAllowRedstoneInput

      public boolean isAllowRedstoneInput()
      Description copied from interface: IDynamicRedstone
      If this side allows redstone to be inputted.
      Specified by:
      isAllowRedstoneInput in interface IDynamicRedstone
      Returns:
      If it allows input.
    • setLastPulseValue

      public void setLastPulseValue(int value)
      Description copied from interface: IDynamicRedstone
      Store the last value that was used to trigger a redstone pulse.
      Specified by:
      setLastPulseValue in interface IDynamicRedstone
      Parameters:
      value - A pulse value.
    • getLastPulseValue

      public int getLastPulseValue()
      Specified by:
      getLastPulseValue in interface IDynamicRedstone
      Returns:
      The last pulse value.