# 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 {#com.jsmacrosce.jsmacros.client.util.ContainerInputCompat_actionId-ClickType-}

```js
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 {#com.jsmacrosce.jsmacros.client.util.ContainerInputCompat_isThrow-ClickType-}

```js
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`
