EntityInteractSpecificEvent
Importing the class
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.
import crafttweaker.neoforge.api.event.interact.EntityInteractSpecificEvent;Description
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
Extends
EntityInteractSpecificEvent extends PlayerInteractEvent.
Implements
EntityInteractSpecificEvent
implements the following interfaces:
 Listening to the event
This event can be listened to like so:
events.register<crafttweaker.neoforge.api.event.interact.EntityInteractSpecificEvent>(event => {    println("EntityInteractSpecificEvent ran!");});Members
Getter
cancel()
Cancels the event. Same as script.zs       
setCanceled(true)// EntityInteractSpecific.cancel();event.cancel();Getter
// EntityInteractSpecific.canceled as boolevent.canceled
Return Type:
bool
Setter
// EntityInteractSpecific.canceled = (cancel as bool);event.canceled = myBool;Parameters:
cancel: bool  Type: bool   canceled() as bool
// EntityInteractSpecific.canceled() as bool;event.canceled();
Return Type:
bool
canceled(cancel as bool)
// EntityInteractSpecific.canceled(cancel as bool);event.canceled(myBool);Parameters:
cancel: bool  Type: bool   Getter
// EntityInteractSpecific.cancellationResult as InteractionResultevent.cancellationResult
Return Type:
InteractionResult
Setter
Set the 
Note that this only has an effect on RightClickBlockEvent, RightClickItemEvent, EntityInteractEvent.script.zs          
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.
event.cancellationResult = myInteractionResult;Parameters:
result: InteractionResult  Type: InteractionResult   Getter
Getter
// EntityInteractSpecific.entity as LivingEntityevent.entity
Return Type:
LivingEntity
Getter
Getter
// EntityInteractSpecific.hand as InteractionHandevent.hand
Return Type:
InteractionHand
Getter
// EntityInteractSpecific.hasResult as boolevent.hasResult
Return Type:
bool
hasResult() as bool
// EntityInteractSpecific.hasResult() as bool;event.hasResult();
Return Type:
bool
Getter
The stack involved in this interaction. May be empty, but will never be null.script.zs   
// EntityInteractSpecific.itemStack as IItemStackevent.itemStack
Return Type:
IItemStack
Getter
// EntityInteractSpecific.result as EventResultevent.result
Return Type:
EventResult
Setter
event.result = myResult;Parameters:
result: EventResult  Type: EventResult   result() as Result
result(result as Result)
event.result(myResult);Parameters:
result: EventResult  Type: EventResult   setAllow()
sets the event's result to script.zs       
allow// EntityInteractSpecific.setAllow();event.setAllow();setDefault()
sets the event's result to script.zs       
default// EntityInteractSpecific.setDefault();event.setDefault();setDeny()
sets the event's result to script.zs       
deny// EntityInteractSpecific.setDeny();event.setDeny();