Interface PlayerDropItemCallback
public interface PlayerDropItemCallback
Callback for the player dropping an item entity.
Is hooked in before the item is dropped.
Upon return:
- SUCCESS cancels further processing and drops the item.
- PASS falls back to further processing.
- FAIL cancels further processing and does not drop the item.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.fabricmc.fabric.api.event.Event<PlayerDropItemCallback> -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResultinteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
-
Field Details
-
EVENT
-
-
Method Details
-
interact
net.minecraft.world.InteractionResult interact(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
-