Package dev.latvian.mods.kubejs.block
Class BlockRightClickedKubeEvent
java.lang.Object
dev.latvian.mods.kubejs.block.BlockRightClickedKubeEvent
- All Implemented Interfaces:
KubeEntityEvent,KubeLivingEntityEvent,KubeEvent,KubeLevelEvent,KubePlayerEvent
@Info("Invoked when a player right clicks on a block.\n")
public class BlockRightClickedKubeEvent
extends Object
implements KubePlayerEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBlockRightClickedKubeEvent(net.minecraft.world.item.ItemStack item, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, @Nullable net.minecraft.world.phys.BlockHitResult hitResult) -
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
-
BlockRightClickedKubeEvent
public BlockRightClickedKubeEvent(net.minecraft.world.item.ItemStack item, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, @Nullable @Nullable net.minecraft.world.phys.BlockHitResult hitResult)
-
-
Method Details
-
getEntity
@Info("The player that right clicked the block.") public net.minecraft.world.entity.player.Player getEntity()- Specified by:
getEntityin interfaceKubeEntityEvent- Specified by:
getEntityin interfaceKubeLivingEntityEvent- Specified by:
getEntityin interfaceKubePlayerEvent
-
getBlock
-
getHand
@Info("The hand that was used to right click the block.") public net.minecraft.world.InteractionHand getHand() -
getItem
@Info("The position of the block that was right clicked.") public net.minecraft.world.item.ItemStack getItem() -
getFacing
-
getHitResult
@Nullable public @Nullable net.minecraft.world.phys.BlockHitResult getHitResult()
-