{"id":14969684,"url":"https://github.com/rqbik/qologramapi","last_synced_at":"2026-02-28T10:32:42.052Z","repository":{"id":188995449,"uuid":"296905450","full_name":"rqbik/QologramAPI","owner":"rqbik","description":"Hologram API","archived":false,"fork":false,"pushed_at":"2021-02-09T17:01:56.000Z","size":87,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T11:09:54.013Z","etag":null,"topics":["bukkit","craftbukkit","minecraft","minecraft-api","minecraft-plugin","plugin","spigot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rqbik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-09-19T16:12:38.000Z","updated_at":"2022-04-05T14:37:29.000Z","dependencies_parsed_at":"2023-08-17T20:26:14.454Z","dependency_job_id":null,"html_url":"https://github.com/rqbik/QologramAPI","commit_stats":null,"previous_names":["rqbik/qologramapi"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rqbik%2FQologramAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rqbik%2FQologramAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rqbik%2FQologramAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rqbik%2FQologramAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rqbik","download_url":"https://codeload.github.com/rqbik/QologramAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239985691,"owners_count":19729512,"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","craftbukkit","minecraft","minecraft-api","minecraft-plugin","plugin","spigot"],"created_at":"2024-09-24T13:42:13.096Z","updated_at":"2025-11-11T10:02:21.089Z","avatar_url":"https://github.com/rqbik.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QologramAPI\n\nModern hologram API written in Kotlin.\n\nUsage:\n\n```kotlin\nrepositories {\n    maven { setUrl(\"https://jitpack.io/\") }\n}\n\ndependencies {\n    implementation(\"com.github.rqbik\", \"QologramAPI\", \"1.0.8\")\n}\n```\n\n```kotlin\nclass MyPlugin : JavaPlugin(), Listener {\n    override fun onEnable() {\n        // Initialize QologramAPI \n        QologramAPI.initialize(this)\n    }\n\n    companion object {\n        fun createHologram(player: Player, location: Location) {\n            // A simple one line hologram\n            val hologram = Qologram(player, location, \"Hello world!\")\n\n            // Show hologram\n            hologram.show()\n\n            // A more complex multiline hologram\n            val multilineHologram = MultilineQologram(player, location) {\n                // Let's add some lines!\n                // Beware that they will be positioned from bottom to top.\n\n                // We can add lines that have interact event handlers\n                addLine(\"An interactive text!\") { event -\u003e\n                    if (event.type == InteractType.RIGHT_CLICK)\n                        event.player.sendMessage(\"You clicked on me!\")\n                    \n                    // Hide this hologram after click\n                    event.hologram.hide()\n                }\n\n                // ...and we can add lines that don't!\n                addLine(\"A simple text.\")\n\n                // We also can listen to events on any of lines:\n                onInteract { event -\u003e\n                    event.player.sendMessage(\"You clicked on hologram with text: ${event.line.text}\")\n                }\n            }\n\n            multilineHologram.show()\n\n            // An even more complex _multipage_ hologram!\n            val multipageHologram = MultipageQologram(player, location) {\n                // The first page is automatically the one that is visible\n                addPage {\n                    addLine(\"Click on me to go to the next page!\") {\n                        // Increment `currentPage` to go to the next page.\n                        currentPage++\n                    }\n                }\n\n                addPage {\n                    addLine(\"Click on me to go to the previous page!\") {\n                        // Decrement `currentPage` to go to the previous page.\n                        currentPage--\n                    }\n\n                    addLine(\"Go to the next page\") {\n                        currentPage++\n                    }\n                }\n\n                addPage {\n                    addLine(\"Go back to first one\") {\n                        // Set `currentPage` to 0 to go to the first page.\n                        currentPage = 0\n                    }\n\n                    addLine(\"I can't be interacted with.\") {\n                        // This will never fire!                 \n                    }.apply {\n                        // Remove collision\n                        // This allows you to shoot projectiles through hologram,\n                        // but prevents you from interacting with it.\n                        hasCollision = false\n                    }\n\n                }\n\n                onInteract { event -\u003e\n                    if (event.interactType == InteractType.LEFT_CLICK)\n                        event.player.sendMessage(\"Hey! Don't attack holograms. They have feelings too!\")\n                }\n            }\n\n            multipageHologram.show()\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frqbik%2Fqologramapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frqbik%2Fqologramapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frqbik%2Fqologramapi/lists"}