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.EntityInteractevent.- Parameters:
player- The player clicking the entity.entity- Then entity the player clicks.hand- The used hand.- Returns:
- A
EventResultdetermining the outcome of the event, the action may be cancelled by the result.
-