Skip to content

Right Click Block

To use this event use the following import:

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

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)

贡献者

页面历史

© 2024 CleanroomMC. All Rights Reserved.