Skip to content

ContainerInputCompat ​

com.jsmacrosce.jsmacros.client.util.ContainerInputCompat

Provides helpers for the container click-action enum used by the current Minecraft target.
The target-specific overloads expose the action's ordinal and test whether it is THROW.

Methods ​

actionId ​

static actionId(ClickType action): int#
Returns the action's zero-based enum ordinal, which is not guaranteed to be a stable wire or protocol ID.

Parameters:

  • action: non-null container click action
Returns: the action's zero-based enum ordinal

isThrow ​

static isThrow(ClickType action): boolean#
Tests whether the action is THROW; null is treated as a non-throw action.

Parameters:

  • action: action to test; may be null
Returns: true only for THROW; false for other actions or null