{"id":18633632,"url":"https://github.com/screamingsandals/simpleinventories","last_synced_at":"2025-04-11T07:32:20.134Z","repository":{"id":48960061,"uuid":"179101009","full_name":"ScreamingSandals/SimpleInventories","owner":"ScreamingSandals","description":"Simple tree gui generator for Spigot plugins!","archived":false,"fork":false,"pushed_at":"2024-06-23T13:01:58.000Z","size":722,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"v2.0","last_synced_at":"2024-06-23T14:24:43.385Z","etag":null,"topics":["bukkit","gui","library","shop"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScreamingSandals.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"bedwars"}},"created_at":"2019-04-02T14:55:53.000Z","updated_at":"2024-06-23T14:24:43.596Z","dependencies_parsed_at":"2024-04-30T07:06:00.849Z","dependency_job_id":"1eb8b1b2-eff8-46a2-b87f-eb56ba55f97b","html_url":"https://github.com/ScreamingSandals/SimpleInventories","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScreamingSandals%2FSimpleInventories","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScreamingSandals%2FSimpleInventories/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScreamingSandals%2FSimpleInventories/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScreamingSandals%2FSimpleInventories/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScreamingSandals","download_url":"https://codeload.github.com/ScreamingSandals/SimpleInventories/tar.gz/refs/heads/v2.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223460572,"owners_count":17148760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bukkit","gui","library","shop"],"created_at":"2024-11-07T05:15:44.601Z","updated_at":"2024-11-07T05:15:44.686Z","avatar_url":"https://github.com/ScreamingSandals.png","language":"Java","funding_links":["https://ko-fi.com/bedwars"],"categories":[],"sub_categories":[],"readme":"# SimpleInventories\n\nSimpleInventories used is small library for making guis in minecraft! It's also available as plugin.\n\n[![Simple Inventories CI](https://github.com/ScreamingSandals/SimpleInventories/actions/workflows/gradle.yml/badge.svg)](https://github.com/ScreamingSandals/SimpleInventories/actions/workflows/gradle.yml)\n\nLook into our wiki: https://github.com/ScreamingSandals/SimpleInventories/wiki\n\n## How to use\n1. Import maven repository\n```xml\n\u003crepository\u003e\n  \u003cid\u003escreaming-repo\u003c/id\u003e\n  \u003curl\u003ehttps://repo.screamingsandals.org/\u003c/url\u003e\n\u003c/repository\u003e\n```\n2. Include dependency\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.screamingsandals.simpleinventories\u003c/groupId\u003e\n  \u003cartifactId\u003eSimpleInventories-Core\u003c/artifactId\u003e\n  \u003cversion\u003eLATEST_VERSION_HERE\u003c/version\u003e\n  \u003cscope\u003ecompile\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n3. Use in code\n```java\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.plugin.java.JavaPlugin;\nimport org.bukkit.Player;\n\nimport org.screamingsandals.simpleinventories.material.builder.ItemFactory;\nimport org.screamingsandals.simpleinventories.bukkit.SimpleInventoriesBukkit;\n\npublic class Sample extends JavaPlugin {\n    \n    private InventorySet inventorySet;\n\n    public void onEnable() {\n\n        SimpleInventoriesBukkit.init(this);\n\n        inventorySet = SimpleInventoriesBukkit.builder()\n                .render(itemRenderEvent -\u003e {\n                    \n                })\n                .preClick(preClickEvent -\u003e {\n                    \n                })\n                .click(clickEvent -\u003e {\n                    \n                })\n                .categoryOptions(options -\u003e \n                    options.backItem(ItemFactory.build(someItemStack1))\n                        .pageBackItem(ItemFactory.build(someItemStack2))\n                        .pageForwardItem(ItemFactory.build(someItemStack3))\n                        .cosmeticItem(ItemFactory.build(someItemStack4))\n                )\n                .include(\"myAwesomeGui.yml\")\n                .process();\n    }\n\n    public void show(Player player) {\n        SimpleInventoriesBukkit.wrapPlayer(player).openInventory(inventorySet);\n    }\n}\n```\n4. Relocate package\n```xml\n\u003cbuild\u003e\n  \u003cplugins\u003e\n    \u003cplugin\u003e\n      \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n      \u003cartifactId\u003emaven-shade-plugin\u003c/artifactId\u003e\n      \u003cexecutions\u003e\n        \u003cexecution\u003e\n          \u003cphase\u003epackage\u003c/phase\u003e\n          \u003cgoals\u003e\n            \u003cgoal\u003eshade\u003c/goal\u003e\n          \u003c/goals\u003e\n          \u003cconfiguration\u003e\n            \u003crelocations\u003e\n              \u003crelocation\u003e\n                \u003cpattern\u003eorg.screamingsandals.simpleinventories\u003c/pattern\u003e\n                \u003cshadedPattern\u003e${project.groupId}.si\u003c/shadedPattern\u003e\n              \u003c/relocation\u003e\n            \u003c/relocations\u003e\n          \u003c/configuration\u003e\n        \u003c/execution\u003e\n      \u003c/executions\u003e\n    \u003c/plugin\u003e\n  \u003c/plugins\u003e\n\u003c/build\u003e\n  ```\n5. Now build your plugin and enjoy it!\n`mvn install`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscreamingsandals%2Fsimpleinventories","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscreamingsandals%2Fsimpleinventories","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscreamingsandals%2Fsimpleinventories/lists"}