Interface InteractionEvent.InteractEntity
- Enclosing interface:
- InteractionEvent
public static interface InteractionEvent.InteractEntity
-
Method Summary
Modifier and TypeMethodDescriptioninteract
(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity entity, net.minecraft.world.InteractionHand hand) Invoked whenever a player right clicks an entity.
-
Method Details
-
interact
EventResult interact(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity entity, net.minecraft.world.InteractionHand hand) Invoked whenever a player right clicks an entity. Equivalent to Forge'sPlayerInteractEvent.EntityInteract
event.- Parameters:
player
- The player clicking the entity.entity
- Then entity the player clicks.hand
- The used hand.- Returns:
- A
EventResult
determining the outcome of the event, the action may be cancelled by the result.
-