Class DetectorBlockKubeEvent

java.lang.Object
dev.latvian.mods.kubejs.block.DetectorBlockKubeEvent
All Implemented Interfaces:
KubeEvent, KubeLevelEvent

@Info("Invoked when a detector block registered in KubeJS receives a block update.\n\n`Powered`/`Unpowered` event will be fired when the detector block is powered/unpowered.\n") public class DetectorBlockKubeEvent extends Object implements KubeLevelEvent
  • Constructor Details

    • DetectorBlockKubeEvent

      public DetectorBlockKubeEvent(String i, net.minecraft.world.level.Level l, net.minecraft.core.BlockPos p, boolean pow)
  • Method Details

    • getDetectorId

      @Info("The id of the detector block when it was registered.") public String getDetectorId()
    • getLevel

      @Info("The level where the detector block is located.") public net.minecraft.world.level.Level getLevel()
      Specified by:
      getLevel in interface KubeLevelEvent
    • isPowered

      @Info("If the detector block is powered.") public boolean isPowered()
    • getBlock

      @Info("The detector block.") public LevelBlock getBlock()