Skip to content

Harvest Check

To use this event use the following import:

groovy
import net.minecraftforge.event.entity.player.PlayerEvent.HarvestCheck

Sub-Classes

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

Methods

groovy
boolean canHarvest()
groovy
net.minecraft.block.state.IBlockState getTargetBlock()
groovy
void setCanHarvest(boolean arg0)

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.