Skip to content

Commit

Permalink
Fix API generation
Browse files Browse the repository at this point in the history
  • Loading branch information
walterhiggins committed Dec 30, 2015
1 parent 8b0caf7 commit acff317
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 76 deletions.
140 changes: 69 additions & 71 deletions docs/API-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6169,7 +6169,7 @@ your own mini-game...
[bukscore]: http://jd.bukkit.org/beta/apidocs/org/bukkit/scoreboard/package-summary.html
/*********************
## Items module
The Items module provides a suite of functions - one for each possible item.
See https://ci.visualillusionsent.net/job/CanaryLib/javadoc/net/canarymod/api/inventory/ItemType.html for a list of possible items
Expand Down Expand Up @@ -6715,8 +6715,7 @@ The following functions are provided:
* yellowStainedClay()
* zombieHead()
***/
/*********************
## Entities module
The Entities module provides a suite of functions - one for each possible entity type.
Expand All @@ -6729,71 +6728,70 @@ The Entities module provides a suite of functions - one for each possible entity
The following functions are provided:
* aRMOR_STAND()
* aRROW()
* bAT()
* bLAZE()
* bOAT()
* cAVE_SPIDER()
* cHICKEN()
* cOMPLEX_PART()
* cOW()
* cREEPER()
* dROPPED_ITEM()
* eGG()
* eNDERMAN()
* eNDERMITE()
* eNDER_CRYSTAL()
* eNDER_DRAGON()
* eNDER_PEARL()
* eNDER_SIGNAL()
* eXPERIENCE_ORB()
* fALLING_BLOCK()
* fIREBALL()
* fIREWORK()
* fISHING_HOOK()
* gHAST()
* gIANT()
* gUARDIAN()
* hORSE()
* iRON_GOLEM()
* iTEM_FRAME()
* lEASH_HITCH()
* lIGHTNING()
* mAGMA_CUBE()
* mINECART()
* mINECART_CHEST()
* mINECART_COMMAND()
* mINECART_FURNACE()
* mINECART_HOPPER()
* mINECART_MOB_SPAWNER()
* mINECART_TNT()
* mUSHROOM_COW()
* oCELOT()
* pAINTING()
* pIG()
* pIG_ZOMBIE()
* pLAYER()
* pRIMED_TNT()
* rABBIT()
* sHEEP()
* sILVERFISH()
* sKELETON()
* sLIME()
* sMALL_FIREBALL()
* sNOWBALL()
* sNOWMAN()
* sPIDER()
* sPLASH_POTION()
* sQUID()
* tHROWN_EXP_BOTTLE()
* uNKNOWN()
* vILLAGER()
* wEATHER()
* wITCH()
* wITHER()
* wITHER_SKULL()
* wOLF()
* zOMBIE()
***/
* armor_stand()
* arrow()
* bat()
* blaze()
* boat()
* cave_spider()
* chicken()
* complex_part()
* cow()
* creeper()
* dropped_item()
* egg()
* ender_crystal()
* ender_dragon()
* ender_pearl()
* ender_signal()
* enderman()
* endermite()
* experience_orb()
* falling_block()
* fireball()
* firework()
* fishing_hook()
* ghast()
* giant()
* guardian()
* horse()
* iron_golem()
* item_frame()
* leash_hitch()
* lightning()
* magma_cube()
* minecart()
* minecart_chest()
* minecart_command()
* minecart_furnace()
* minecart_hopper()
* minecart_mob_spawner()
* minecart_tnt()
* mushroom_cow()
* ocelot()
* painting()
* pig()
* pig_zombie()
* player()
* primed_tnt()
* rabbit()
* sheep()
* silverfish()
* skeleton()
* slime()
* small_fireball()
* snowball()
* snowman()
* spider()
* splash_potion()
* squid()
* thrown_exp_bottle()
* unknown()
* villager()
* weather()
* witch()
* wither()
* wither_skull()
* wolf()
* zombie()
5 changes: 2 additions & 3 deletions src/docs/js/generateEntitiesDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var out = java.lang.System.out,
err = java.lang.System.err,
entry = null;
var content = [
'/*********************',
'',
'## Entities module',
'The Entities module provides a suite of functions - one for each possible entity type.',
'',
Expand All @@ -24,14 +24,13 @@ var entitytypes = org.bukkit.entity.EntityType.values();
for (t in entitytypes) {
if (entitytypes[t] && entitytypes[t].ordinal) {
name = entitytypes[t].name();
name = ('' + name).replace(/^(.)/,function(a){ return a.toLowerCase(); });
name = ('' + name).replace(/^(.*)/,function(a){ return a.toLowerCase(); });
enumVals.push(' * ' + name + '()');
}
}
enumVals.sort();
content = content.concat(enumVals);
content.push('');
content.push('***/');
for (i = 0; i< content.length; i++){
out.println(content[i]);
}
Expand Down
3 changes: 1 addition & 2 deletions src/docs/js/generateItemsDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var out = java.lang.System.out,
err = java.lang.System.err,
entry = null;
var content = [
'/*********************',
'',
'## Items module',
'The Items module provides a suite of functions - one for each possible item.',
'See https://ci.visualillusionsent.net/job/CanaryLib/javadoc/net/canarymod/api/inventory/ItemType.html for a list of possible items',
Expand Down Expand Up @@ -35,7 +35,6 @@ for (var i = 0;i < materials.length; i++ ){
enumVals.sort();
content = content.concat(enumVals);
content.push('');
content.push('***/');
for (var i = 0; i< content.length; i++){
out.println(content[i]);
}
Expand Down

0 comments on commit acff317

Please sign in to comment.