Package dev.latvian.mods.kubejs.block
Class BlockLeftClickedKubeEvent
java.lang.Object
dev.latvian.mods.kubejs.block.BlockLeftClickedKubeEvent
- All Implemented Interfaces:
KubeEntityEvent,KubeLivingEntityEvent,KubeEvent,KubeLevelEvent,KubePlayerEvent
@Info("Invoked when a player left clicks on a block.\n")
public class BlockLeftClickedKubeEvent
extends Object
implements KubePlayerEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBlockLeftClickedKubeEvent(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.LeftClickBlock 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
-
BlockLeftClickedKubeEvent
public BlockLeftClickedKubeEvent(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.LeftClickBlock event)
-
-
Method Details
-
getEntity
@Info("The player that left clicked the block.") public net.minecraft.world.entity.player.Player getEntity()- Specified by:
getEntityin interfaceKubeEntityEvent- Specified by:
getEntityin interfaceKubeLivingEntityEvent- Specified by:
getEntityin interfaceKubePlayerEvent
-
getBlock
-
getItem
@Info("The item that was used to left click the block.") public net.minecraft.world.item.ItemStack getItem() -
getFacing
@Info("The face of the block that was left clicked.") @Nullable public @Nullable net.minecraft.core.Direction getFacing()
-