public static class ApricornEvent.Pick extends ApricornEvent
ApricornEvent
subclass event which fires when an apricorn is being picked by a player.
Cancelling this event will stop the player from harvesting the apricorn
ApricornEvent.Pick
Constructor and Description |
---|
Pick(net.minecraft.world.World level,
net.minecraft.block.BlockState state,
ApricornType apricorn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack pickedStack) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.item.ItemStack |
getPickedStack()
Gets the itemstack being dropped
|
net.minecraft.entity.player.ServerPlayerEntity |
getPlayer()
Gets the player picking the item
|
getApricorn, getLevel, getPos, getState
public Pick(net.minecraft.world.World level, net.minecraft.block.BlockState state, ApricornType apricorn, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.ServerPlayerEntity player, net.minecraft.item.ItemStack pickedStack)