Interface IRedstoneControl<T extends net.minecraft.world.level.block.entity.BlockEntity & IRedstoneControl<T>>

All Known Implementing Classes:
AbstractHopperBlockEntity, AdvancedAirCompressorBlockEntity, AdvancedLiquidCompressorBlockEntity, AerialInterfaceBlockEntity, AirCannonBlockEntity, AirCompressorBlockEntity, ChargingStationBlockEntity, ElectrostaticCompressorBlockEntity, ElevatorBaseBlockEntity, ElevatorCallerBlockEntity, FluidMixerBlockEntity, FluxCompressorBlockEntity, GasLiftBlockEntity, KeroseneLampBlockEntity, LiquidCompressorBlockEntity, LiquidHopperBlockEntity, OmnidirectionalHopperBlockEntity, PneumaticDoorBaseBlockEntity, PneumaticDynamoBlockEntity, PressureChamberInterfaceBlockEntity, PressurizedSpawnerBlockEntity, RefineryControllerBlockEntity, RefineryOutputBlockEntity, SecurityStationBlockEntity, SentryTurretBlockEntity, SmartChestBlockEntity, ThermalCompressorBlockEntity, ThermopneumaticProcessingPlantBlockEntity, UniversalSensorBlockEntity, UVLightBoxBlockEntity, VacuumPumpBlockEntity
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IRedstoneControl<T extends net.minecraft.world.level.block.entity.BlockEntity & IRedstoneControl<T>>
  • Method Details

    • getRedstoneController

      RedstoneController<T> getRedstoneController()
      Get the redstone controller object for this BE
      Returns:
      the redstone controller
    • getRedstoneTabTitle

      default net.minecraft.network.chat.MutableComponent getRedstoneTabTitle()
    • getCurrentRedstonePower

      default int getCurrentRedstonePower()
      Get the current redstone level for this BE.
      Returns:
      the current redstone level for the BE
    • getRedstoneMode

      default int getRedstoneMode()
    • onRedstoneModeChanged

      default void onRedstoneModeChanged(int newModeIdx)