# JEI Integration

<p class="callout info">All JEI events are client sided and so go in the client\_scripts folder</p>

Sub-types

```JavaScript
onEvent('jei.subtypes', event => {
  event.useNBT('example:item')
  event.useNBTKey('example:item', 'type')
})
```

Hide Items &amp; Fluids

```JavaScript
onEvent('jei.hide.items', event => {
  event.hide('example:ingredient')
})

onEvent('jei.hide.fluids', event => {
  event.hide('example:fluid')
})
```

Add Items &amp; Fluids

```JavaScript
onEvent('jei.add.items', event => {
  event.add(Item.of('example:item', {test: 123}))
})

onEvent('jei.add.fluids', event => {
  event.add('example:fluid')
})
```

Add Information

```JavaScript
onEvent('jei.information', event => {
  event.add('example:ingredient', ['Line 1', 'Line 2'])
})
```

Hide categories

```JavaScript
onEvent('jei.remove.categories', event => {
  console.log(event.getCategoryIds()) //log a list of all category ids to logs/kubejs/client.txt
  
  event.remove('create:compacting')
})
```