Skip to content

MetaBlobInventory

Luis Benavides-Naranjo edited this page Mar 15, 2024 · 1 revision

MetaBlobInventory inherits BlobInventory fields. MetaBlobInventory uses MetaInventoryButtons in their buttons.

BlobInventory

MetaInventoryButton

Fields

  • All MetaInventoryButtons have fields. If a required field is missing in the configuration, it will log it in console.
  • ❌ = Required
  • ✅ = Optional

  • Type (Used so plugins can listen to specific inventories) [✅] Defaults to DEFAULT
    1. #your key would be the name of your file. if your file is "inventory_1.yml", then the key is "inventory_1"
      Type: TRASHCAN # it's used as an example. a plugin can listen to all TRASHCAN inventories and do their logic
      Title: '&lRULES'
      Size: 27
      Buttons:
        Background:
          ItemStack: myServerLOLomgYOLO.background
          Slot: 0-26
    2. inventory_1: # your MetaBlobInventory key would be "inventory_1"
        Type: TRASHCAN # it's used as an example. a plugin can listen to all TRASHCAN inventories and do their logic
        Title: '&lRULES'
        Size: 27
        Buttons:
          Background:
            ItemStack: myServerLOLomgYOLO.background
            Slot: 0-26
    3. myServerLOLomgYOLO:
        inventory_1: # your MetaBlobInventory key would be "myServerLOLomgYOLO.inventory_1"
          Type: TRASHCAN # it's used as an example. a plugin can listen to all TRASHCAN inventories and do their logic
          Title: '&lRULES'
          Size: 27
          Buttons:
            Background:
              ItemStack: myServerLOLomgYOLO.background
              Slot: 0-26