[Question] Can i add class with the api?
See original GitHub issueI wanna use the MagicApi for create a custom class: CustomClass
Can i do this?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
javascript - How to add a class to a given element?
Add a space plus the name of your new class to the className property of the element. First, put an id on the...
Read more >.addClass() | jQuery API Documentation
A function returning one or more space-separated class names or an array of class names to be added to the existing class name(s)....
Read more >Element.classList - Web APIs | MDN
classList is a read-only property that returns a live DOMTokenList collection of the class attributes of the element. This can then be used ......
Read more >Frequently Asked Questions - Virtual Classroom API - BrainCert
Frequently Asked Questions. Can I use Virtual Classroom API to integrate BrainCert's courses and testing platform in my website?
Read more >Classes Added Using GenerateSchema Appear in the ...
I need to add explicitly add some additional class definition to swagger.json. These are for classes which do not appear in any web...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, yeah sadly the doxygen docs got broken. I’ll replace with a link to the classes:
https://github.com/elBukkit/MagicPlugin/blob/master/MagicAPI/src/main/java/com/elmakers/mine/bukkit/api/action/SpellAction.java
https://github.com/elBukkit/MagicPlugin/blob/master/Magic/src/main/java/com/elmakers/mine/bukkit/action/BaseSpellAction.java
If using BaseSpellAction (which I would recommend), you will need to build against the Magic plugin itself, not the API. The plugin is not available in the Central Maven repo, so you will have to add the elMakers repo:
Then you would add Magic as a dependency like this:
The wiki is hosted on github… is that really down for you?
Truth be told it’ll be easier to make your own action if you depend on Magic and not the API, so you can inherit from the BaseAction class. If you can do that, just look at any of the actions int the source code, it’s pretty easy. Just implement prepare and process methods.