ModeledEntityInteractEvent

public final class ModeledEntityInteractEvent extends PlayerInteractEntityEvent

Entity permission check for a model right-click, with the real backing entity as its target. Deliberately inherits PlayerInteractEntityEvent's HandlerList so ordinary entity protection listeners see it. This is not another physical input: FMM's input routers must ignore it. Cancellation prevents the subsequent ModeledEntityRightClickEvent and model callback.

Constructors

Link copied to clipboard
public void ModeledEntityInteractEvent(Player player, ModeledEntity modeledEntity)

Properties

Link copied to clipboard

Inherited properties

Link copied to clipboard
protected Entity clickedEntity
Link copied to clipboard
public EquipmentSlot hand
Link copied to clipboard
public final static HandlerList handlers
Link copied to clipboard
protected Player player

Functions

Link copied to clipboard

Inherited functions

Link copied to clipboard
public String getEventName()
Link copied to clipboard
public EquipmentSlot getHand()
Link copied to clipboard
public static HandlerList getHandlerList()
Link copied to clipboard
public HandlerList getHandlers()
Link copied to clipboard
public final Player getPlayer()
Link copied to clipboard
public Entity getRightClicked()
Link copied to clipboard
public final boolean isAsynchronous()
Link copied to clipboard
public boolean isCancelled()
Link copied to clipboard
public void setCancelled(boolean cancel)