SpongeAPI | A Minecraft plugin API | Video Game library
kandi X-RAY | SpongeAPI Summary
kandi X-RAY | SpongeAPI Summary
A Minecraft plugin API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Process annotations
- Replies if the given type is a subclass of the given type
- Check if a collection contains a specific type
- Check method parameters of given element
- Creates a transform for a centered volume
- Create a transform to center an area around a particular quarter
- Creates a transform to a new rotation matrix
- Coerces the supplied object to a Vector2i
- Converts an array of objects to a list
- Add a given damage modifier after the given damage modifier
- Parses the given object as an integer
- Checks to see if they are equal in the given pool
- Creates a bi - consumer that sets a single value to a single item
- Checks if an entity is within a certain distance
- Returns true if this table equals another table
- Add a new damage modifier before the given function
- Gets the mappings for a specific role template
- Coerces the specified object to a list of objects
- Generate a random list of objects from this table
- Adds a damage modifier before the given function
- Validate key reference
- Set the output damage modifier
- Coerces the specified object to the specified pseudo - enum type
- Set the damage modifier
- Initializes this B with the given value
- Add a new damage modifier after the given damage modifier
SpongeAPI Key Features
SpongeAPI Examples and Code Snippets
Community Discussions
Trending Discussions on SpongeAPI
QUESTION
SpongeAPI provides a ScheduledExecutorService , And Guava provides a well defined, and well tested abstract service class: https://google.github.io/guava/releases/19.0/api/docs/com/google/common/util/concurrent/AbstractScheduledService.html
Is it possible to extend the AbstractSceduledService in order to use the Sponge ScheduledExecutorService ?
I've tried extending AbstractScheduledService myself, But AbstractScheduledService.Scheduler has a private constructor, preventing creation of my own Schedulers to create custom scheduling.
...ANSWER
Answered 2018-Jun-13 at 04:28Try extending CustomScheduler instead?
QUESTION
ore.spongepowered.org is a website that hosts Minecraft Plugins.
These Plugins rely upon a dependency called SpongeAPI in order to run.
Given a jar file that has been uploaded to our service, and has metadata that associates it with a given (semver) dependency on SpongeAPI, How can we determine if there is a binary incompatible change in SpongeAPI that affects a given plugin?
E.g. A plugin jar is published for API version 5.
API 5.1 (semver) is released, it contains only additions. As long as semver has been enforced, we know due to versioning convention that the plugin will likely work.
API 6 gets released, it's a semver major release, but the jar was built against API5, there is a possibility that the plugin is still compatible, but no guarantee. How can we test (using tooling) whether the plugin has any references to code that was removed or had it's signature changed from API 5 -> API 6 ?
This would be valuable to know, as we could warn people when they are using a potentially incompatible combination.
Note: We are in control of the Library SpongeAPI not the plugins that are community made.
...ANSWER
Answered 2018-Jan-29 at 00:39The conventional approach is to build the system using automated build and continuous integration tools like Jenkins, Bitbucket Pipelines, Gitlab-CI etc. (I presume you are using Maven or Gradle already given that you have tagged them in your question).
The build will fail if the change (to a newer dependency) changed anything like method signatures or other refactoring.
Furthermore, you should also have unit tests ensuring that your functionality is working as expected. If a fundamental behaviour of the underlying libraries changes that affects your functions, you would be able to detect that too. This would help you catch functional changes, not just compilation issues.
Finally, you might want to look at the new Java 9 module system. It's still a bit behind with regards to adoption, but it might offer an alternative solution to what you are looking for, especially if you are in control of the dependencies too.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SpongeAPI
You can use SpongeAPI like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the SpongeAPI component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page