Skip to content

Left Click Block

To use this event use the following import:

groovy
import net.minecraftforge.event.entity.player.PlayerInteractEvent.LeftClickBlock

Sub-Classes

This event extends the following events and can use all their methods and fields:
PlayerInteractEvent, PlayerEvent, LivingEvent, EntityEvent

Methods

groovy
void setCanceled(boolean arg0)
groovy
net.minecraftforge.fml.common.eventhandler.Event$Result getUseItem()
groovy
net.minecraft.util.math.Vec3d getHitVec()
groovy
net.minecraftforge.fml.common.eventhandler.Event$Result getUseBlock()
groovy
void setUseBlock(net.minecraftforge.fml.common.eventhandler.Event$Result arg0)
groovy
void setUseItem(net.minecraftforge.fml.common.eventhandler.Event$Result arg0)

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.