Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API #36

Open
EmporiumPvP opened this issue Feb 6, 2023 · 7 comments
Open

API #36

EmporiumPvP opened this issue Feb 6, 2023 · 7 comments
Labels
Feature Request TBC To be confirmed

Comments

@EmporiumPvP
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
would it be possible to use this as an API? if not would you be willing to create an API for it?

@EmporiumPvP EmporiumPvP added Feature Request TBC To be confirmed labels Feb 6, 2023
@diamond-gold
Copy link
Owner

What functions would you like to have in the API?

@EmporiumPvP
Copy link
Author

everything that involves creating, editing, spawning the boss etc, setting items, custom name, setting spawn location, setting if the boss spawns once or respawns continuously, the end goal is to be able to use this plugin for more than just bosses.

@diamond-gold
Copy link
Owner

The plugin in its current state, is quite tightly coupled with the main class and its config. It may require major refractoring to support being used as an API.
It is technically already possible to do all of that through the use of the public fields.
I do agree that having an API may make it easier for extension and integration.

@EmporiumPvP
Copy link
Author

ok would it be possible for you to provide a basic usage of how to do that? until you create the API (if you do)

@diamond-gold
Copy link
Owner

You can create, edit, delete by directly accessing the config Main::$data
To make changes after spawning the boss you can directly modify the public fields in Boss
Spawn the boss with Main::spawnBoss()

@EmporiumPvP

This comment was marked as off-topic.

@diamond-gold
Copy link
Owner

Width & height can be configured. By default it is 1x1x1
Also please keep this thread solely for discussions regarding the API.
Open a discussion if you have any other questions. Thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request TBC To be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants