If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
This event is fired on both sides whenever a player right-clicks an entity. "Interact at" is an interact where the local vector (which part of the entity you clicked) is known. The state of this event affects whether Vec3, InteractionHand) is called. canceled will cause the entity to not be interacted with
If the interaction was on an entity, will be a BlockPos centered on the entity. If the interaction was on a block, will be the position of that block. Otherwise, will be a BlockPos centered on the player.
Set the InteractionResult that will be returned to vanilla if the event is cancelled, instead of calling the relevant method of the event. Note that this only has an effect on RightClickBlockEvent, RightClickItemEvent, EntityInteractEvent.
script.zs
// EntityInteractSpecific.cancellationResult = (result as InteractionResult);