Skip to main content

Module interaction

Module interaction 

Source

Structsยง

InteractionEntity
An invisible, invincible, interactable entity which records when a player clicks on its bounding box. It is used in map-making or data packs, and its bounding box is customizable.
InteractionEntityDataView
Provides an exclusive view of the synchronized entity data of an interaction entity. This includes its width, its height, and the response boolean.
PlayerAction
Represents an action of a player. It contains the UUID of the player who executed this action and the timestamp (based on game time, expressed in ticks) when it was executed.

Constantsยง

DEFAULT_DIMENSIONS ๐Ÿ”’
DEFAULT_HEIGHT ๐Ÿ”’
DEFAULT_RESPONSE ๐Ÿ”’
DEFAULT_WIDTH ๐Ÿ”’
TAG_ATTACK ๐Ÿ”’
TAG_HEIGHT ๐Ÿ”’
TAG_INTERACTION ๐Ÿ”’
TAG_PLAYER ๐Ÿ”’
TAG_RESPONSE ๐Ÿ”’
TAG_TIMESTAMP ๐Ÿ”’
TAG_WIDTH ๐Ÿ”’