Skip to content

Commit acff317

Browse files
committed
Fix API generation
1 parent 8b0caf7 commit acff317

File tree

3 files changed

+72
-76
lines changed

3 files changed

+72
-76
lines changed

docs/API-Reference.md

+69-71
Original file line numberDiff line numberDiff line change
@@ -6169,7 +6169,7 @@ your own mini-game...
61696169
61706170
[bukscore]: http://jd.bukkit.org/beta/apidocs/org/bukkit/scoreboard/package-summary.html
61716171
6172-
/*********************
6172+
61736173
## Items module
61746174
The Items module provides a suite of functions - one for each possible item.
61756175
See https://ci.visualillusionsent.net/job/CanaryLib/javadoc/net/canarymod/api/inventory/ItemType.html for a list of possible items
@@ -6715,8 +6715,7 @@ The following functions are provided:
67156715
* yellowStainedClay()
67166716
* zombieHead()
67176717
6718-
***/
6719-
/*********************
6718+
67206719
## Entities module
67216720
The Entities module provides a suite of functions - one for each possible entity type.
67226721
@@ -6729,71 +6728,70 @@ The Entities module provides a suite of functions - one for each possible entity
67296728
67306729
The following functions are provided:
67316730
6732-
* aRMOR_STAND()
6733-
* aRROW()
6734-
* bAT()
6735-
* bLAZE()
6736-
* bOAT()
6737-
* cAVE_SPIDER()
6738-
* cHICKEN()
6739-
* cOMPLEX_PART()
6740-
* cOW()
6741-
* cREEPER()
6742-
* dROPPED_ITEM()
6743-
* eGG()
6744-
* eNDERMAN()
6745-
* eNDERMITE()
6746-
* eNDER_CRYSTAL()
6747-
* eNDER_DRAGON()
6748-
* eNDER_PEARL()
6749-
* eNDER_SIGNAL()
6750-
* eXPERIENCE_ORB()
6751-
* fALLING_BLOCK()
6752-
* fIREBALL()
6753-
* fIREWORK()
6754-
* fISHING_HOOK()
6755-
* gHAST()
6756-
* gIANT()
6757-
* gUARDIAN()
6758-
* hORSE()
6759-
* iRON_GOLEM()
6760-
* iTEM_FRAME()
6761-
* lEASH_HITCH()
6762-
* lIGHTNING()
6763-
* mAGMA_CUBE()
6764-
* mINECART()
6765-
* mINECART_CHEST()
6766-
* mINECART_COMMAND()
6767-
* mINECART_FURNACE()
6768-
* mINECART_HOPPER()
6769-
* mINECART_MOB_SPAWNER()
6770-
* mINECART_TNT()
6771-
* mUSHROOM_COW()
6772-
* oCELOT()
6773-
* pAINTING()
6774-
* pIG()
6775-
* pIG_ZOMBIE()
6776-
* pLAYER()
6777-
* pRIMED_TNT()
6778-
* rABBIT()
6779-
* sHEEP()
6780-
* sILVERFISH()
6781-
* sKELETON()
6782-
* sLIME()
6783-
* sMALL_FIREBALL()
6784-
* sNOWBALL()
6785-
* sNOWMAN()
6786-
* sPIDER()
6787-
* sPLASH_POTION()
6788-
* sQUID()
6789-
* tHROWN_EXP_BOTTLE()
6790-
* uNKNOWN()
6791-
* vILLAGER()
6792-
* wEATHER()
6793-
* wITCH()
6794-
* wITHER()
6795-
* wITHER_SKULL()
6796-
* wOLF()
6797-
* zOMBIE()
6798-
6799-
***/
6731+
* armor_stand()
6732+
* arrow()
6733+
* bat()
6734+
* blaze()
6735+
* boat()
6736+
* cave_spider()
6737+
* chicken()
6738+
* complex_part()
6739+
* cow()
6740+
* creeper()
6741+
* dropped_item()
6742+
* egg()
6743+
* ender_crystal()
6744+
* ender_dragon()
6745+
* ender_pearl()
6746+
* ender_signal()
6747+
* enderman()
6748+
* endermite()
6749+
* experience_orb()
6750+
* falling_block()
6751+
* fireball()
6752+
* firework()
6753+
* fishing_hook()
6754+
* ghast()
6755+
* giant()
6756+
* guardian()
6757+
* horse()
6758+
* iron_golem()
6759+
* item_frame()
6760+
* leash_hitch()
6761+
* lightning()
6762+
* magma_cube()
6763+
* minecart()
6764+
* minecart_chest()
6765+
* minecart_command()
6766+
* minecart_furnace()
6767+
* minecart_hopper()
6768+
* minecart_mob_spawner()
6769+
* minecart_tnt()
6770+
* mushroom_cow()
6771+
* ocelot()
6772+
* painting()
6773+
* pig()
6774+
* pig_zombie()
6775+
* player()
6776+
* primed_tnt()
6777+
* rabbit()
6778+
* sheep()
6779+
* silverfish()
6780+
* skeleton()
6781+
* slime()
6782+
* small_fireball()
6783+
* snowball()
6784+
* snowman()
6785+
* spider()
6786+
* splash_potion()
6787+
* squid()
6788+
* thrown_exp_bottle()
6789+
* unknown()
6790+
* villager()
6791+
* weather()
6792+
* witch()
6793+
* wither()
6794+
* wither_skull()
6795+
* wolf()
6796+
* zombie()
6797+

src/docs/js/generateEntitiesDoc.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var out = java.lang.System.out,
44
err = java.lang.System.err,
55
entry = null;
66
var content = [
7-
'/*********************',
7+
'',
88
'## Entities module',
99
'The Entities module provides a suite of functions - one for each possible entity type.',
1010
'',
@@ -24,14 +24,13 @@ var entitytypes = org.bukkit.entity.EntityType.values();
2424
for (t in entitytypes) {
2525
if (entitytypes[t] && entitytypes[t].ordinal) {
2626
name = entitytypes[t].name();
27-
name = ('' + name).replace(/^(.)/,function(a){ return a.toLowerCase(); });
27+
name = ('' + name).replace(/^(.*)/,function(a){ return a.toLowerCase(); });
2828
enumVals.push(' * ' + name + '()');
2929
}
3030
}
3131
enumVals.sort();
3232
content = content.concat(enumVals);
3333
content.push('');
34-
content.push('***/');
3534
for (i = 0; i< content.length; i++){
3635
out.println(content[i]);
3736
}

src/docs/js/generateItemsDoc.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var out = java.lang.System.out,
44
err = java.lang.System.err,
55
entry = null;
66
var content = [
7-
'/*********************',
7+
'',
88
'## Items module',
99
'The Items module provides a suite of functions - one for each possible item.',
1010
'See https://ci.visualillusionsent.net/job/CanaryLib/javadoc/net/canarymod/api/inventory/ItemType.html for a list of possible items',
@@ -35,7 +35,6 @@ for (var i = 0;i < materials.length; i++ ){
3535
enumVals.sort();
3636
content = content.concat(enumVals);
3737
content.push('');
38-
content.push('***/');
3938
for (var i = 0; i< content.length; i++){
4039
out.println(content[i]);
4140
}

0 commit comments

Comments
 (0)