Package dev.latvian.mods.kubejs.block
Class BlockBrokenKubeEvent
java.lang.Object
dev.latvian.mods.kubejs.block.BlockBrokenKubeEvent
- All Implemented Interfaces:
KubeEntityEvent,KubeLivingEntityEvent,KubeEvent,KubeLevelEvent,KubePlayerEvent
@Info("Invoked when a block is destroyed by a player.\n")
public class BlockBrokenKubeEvent
extends Object
implements KubePlayerEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBlockBrokenKubeEvent(net.neoforged.neoforge.event.level.BlockEvent.BreakEvent event) -
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.entity.KubeEntityEvent
getLevelMethods 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, getServerMethods inherited from interface dev.latvian.mods.kubejs.player.KubePlayerEvent
getPlayer
-
Constructor Details
-
BlockBrokenKubeEvent
public BlockBrokenKubeEvent(net.neoforged.neoforge.event.level.BlockEvent.BreakEvent event)
-
-
Method Details
-
getEntity
@Info("The player that broke the block.") public net.minecraft.world.entity.player.Player getEntity()- Specified by:
getEntityin interfaceKubeEntityEvent- Specified by:
getEntityin interfaceKubeLivingEntityEvent- Specified by:
getEntityin interfaceKubePlayerEvent
-
getBlock
-