public final class EntityInteractionTypes extends Object
EntityInteractionType
s available in Vanilla.Modifier and Type | Field and Description |
---|---|
static EntityInteractionType |
ATTACK
Represents an interaction by "attacking", bound to left
click in the client by default.
|
static EntityInteractionType |
INDIRECT
Represents an interaction that occurs indirectly by an
Entity . |
static EntityInteractionType |
PICK_BLOCK
Represents an interaction by middle clicking, bound to the
scroll wheel in the client by default.
|
static EntityInteractionType |
USE
Represents an interaction by right clicking, bound to right
click in the client by default.
|
public static final EntityInteractionType ATTACK
public static final EntityInteractionType PICK_BLOCK
This is only valid for BlockType
s, and has the effect
of giving a player the picked block if in GameModes.CREATIVE
.
public static final EntityInteractionType USE
public static final EntityInteractionType INDIRECT
Entity
.
A good example is an entity walking over a pressure plate and invoking an event. The interaction type in the event would be considered "indirect" as the entity wasn't directly interacting with the pressure plate.