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(ContainerInput 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(ContainerInput action): boolean#Tests whether the action is
THROW; null is treated as a non-throw action.Parameters:
action: action to test; may benull
Returns:
true only for THROW; false for other actions or null