Class DynamicRedstoneTileMultipartTicking

java.lang.Object
org.cyclops.integrateddynamics.capability.dynamicredstone.DynamicRedstoneTileMultipartTicking
All Implemented Interfaces:
IDynamicRedstone

public class DynamicRedstoneTileMultipartTicking extends Object implements IDynamicRedstone
Default implementation of IDynamicRedstone.
  • Constructor Details

    • DynamicRedstoneTileMultipartTicking

      public DynamicRedstoneTileMultipartTicking(BlockEntityMultipartTicking tile, net.minecraft.core.Direction side)
  • Method Details

    • getRedstoneLevels

      protected org.cyclops.cyclopscore.datastructure.EnumFacingMap<Integer> getRedstoneLevels()
    • getRedstoneInputs

      protected org.cyclops.cyclopscore.datastructure.EnumFacingMap<Boolean> getRedstoneInputs()
    • getRedstoneStrong

      protected org.cyclops.cyclopscore.datastructure.EnumFacingMap<Boolean> getRedstoneStrong()
    • 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.
    • 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.