Interface InteractionEvent.InteractEntity
- Enclosing interface:
- InteractionEvent
public static interface InteractionEvent.InteractEntity
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResultinteract(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
net.minecraft.world.InteractionResult 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:
- If the return value is not
InteractionResult.PASS, event is cancelled and the used result is passed as return value.
-