Package dev.latvian.mods.kubejs.block
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 Summary
ConstructorsConstructorDescriptionDetectorBlockKubeEvent(String i, net.minecraft.world.level.Level l, net.minecraft.core.BlockPos p, boolean pow) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.event.KubeEvent
afterPosted, cancel, cancel, defaultExitValue, exit, exit, getExitValueType, mapExitValue, success, successMethods inherited from interface dev.latvian.mods.kubejs.level.KubeLevelEvent
getRegistries, getServer
-
Constructor Details
-
DetectorBlockKubeEvent
public DetectorBlockKubeEvent(String i, net.minecraft.world.level.Level l, net.minecraft.core.BlockPos p, boolean pow)
-
-
Method Details
-
getDetectorId
-
getLevel
@Info("The level where the detector block is located.") public net.minecraft.world.level.Level getLevel()- Specified by:
getLevelin interfaceKubeLevelEvent
-
isPowered
-
getBlock
-