Fix API generation

This commit is contained in:
walterhiggins 2015-12-30 13:12:56 +00:00
parent 8b0caf7295
commit acff317aa8
3 changed files with 71 additions and 75 deletions

View file

@ -6169,7 +6169,7 @@ your own mini-game...
[bukscore]: http://jd.bukkit.org/beta/apidocs/org/bukkit/scoreboard/package-summary.html [bukscore]: http://jd.bukkit.org/beta/apidocs/org/bukkit/scoreboard/package-summary.html
/*********************
## Items module ## Items module
The Items module provides a suite of functions - one for each possible item. 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 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:
* yellowStainedClay() * yellowStainedClay()
* zombieHead() * zombieHead()
***/
/*********************
## Entities module ## Entities module
The Entities module provides a suite of functions - one for each possible entity type. The Entities module provides a suite of functions - one for each possible entity type.
@ -6729,71 +6728,70 @@ The Entities module provides a suite of functions - one for each possible entity
The following functions are provided: The following functions are provided:
* aRMOR_STAND() * armor_stand()
* aRROW() * arrow()
* bAT() * bat()
* bLAZE() * blaze()
* bOAT() * boat()
* cAVE_SPIDER() * cave_spider()
* cHICKEN() * chicken()
* cOMPLEX_PART() * complex_part()
* cOW() * cow()
* cREEPER() * creeper()
* dROPPED_ITEM() * dropped_item()
* eGG() * egg()
* eNDERMAN() * ender_crystal()
* eNDERMITE() * ender_dragon()
* eNDER_CRYSTAL() * ender_pearl()
* eNDER_DRAGON() * ender_signal()
* eNDER_PEARL() * enderman()
* eNDER_SIGNAL() * endermite()
* eXPERIENCE_ORB() * experience_orb()
* fALLING_BLOCK() * falling_block()
* fIREBALL() * fireball()
* fIREWORK() * firework()
* fISHING_HOOK() * fishing_hook()
* gHAST() * ghast()
* gIANT() * giant()
* gUARDIAN() * guardian()
* hORSE() * horse()
* iRON_GOLEM() * iron_golem()
* iTEM_FRAME() * item_frame()
* lEASH_HITCH() * leash_hitch()
* lIGHTNING() * lightning()
* mAGMA_CUBE() * magma_cube()
* mINECART() * minecart()
* mINECART_CHEST() * minecart_chest()
* mINECART_COMMAND() * minecart_command()
* mINECART_FURNACE() * minecart_furnace()
* mINECART_HOPPER() * minecart_hopper()
* mINECART_MOB_SPAWNER() * minecart_mob_spawner()
* mINECART_TNT() * minecart_tnt()
* mUSHROOM_COW() * mushroom_cow()
* oCELOT() * ocelot()
* pAINTING() * painting()
* pIG() * pig()
* pIG_ZOMBIE() * pig_zombie()
* pLAYER() * player()
* pRIMED_TNT() * primed_tnt()
* rABBIT() * rabbit()
* sHEEP() * sheep()
* sILVERFISH() * silverfish()
* sKELETON() * skeleton()
* sLIME() * slime()
* sMALL_FIREBALL() * small_fireball()
* sNOWBALL() * snowball()
* sNOWMAN() * snowman()
* sPIDER() * spider()
* sPLASH_POTION() * splash_potion()
* sQUID() * squid()
* tHROWN_EXP_BOTTLE() * thrown_exp_bottle()
* uNKNOWN() * unknown()
* vILLAGER() * villager()
* wEATHER() * weather()
* wITCH() * witch()
* wITHER() * wither()
* wITHER_SKULL() * wither_skull()
* wOLF() * wolf()
* zOMBIE() * zombie()
***/

View file

@ -4,7 +4,7 @@ var out = java.lang.System.out,
err = java.lang.System.err, err = java.lang.System.err,
entry = null; entry = null;
var content = [ var content = [
'/*********************', '',
'## Entities module', '## Entities module',
'The Entities module provides a suite of functions - one for each possible entity type.', 'The Entities module provides a suite of functions - one for each possible entity type.',
'', '',
@ -24,14 +24,13 @@ var entitytypes = org.bukkit.entity.EntityType.values();
for (t in entitytypes) { for (t in entitytypes) {
if (entitytypes[t] && entitytypes[t].ordinal) { if (entitytypes[t] && entitytypes[t].ordinal) {
name = entitytypes[t].name(); name = entitytypes[t].name();
name = ('' + name).replace(/^(.)/,function(a){ return a.toLowerCase(); }); name = ('' + name).replace(/^(.*)/,function(a){ return a.toLowerCase(); });
enumVals.push(' * ' + name + '()'); enumVals.push(' * ' + name + '()');
} }
} }
enumVals.sort(); enumVals.sort();
content = content.concat(enumVals); content = content.concat(enumVals);
content.push(''); content.push('');
content.push('***/');
for (i = 0; i< content.length; i++){ for (i = 0; i< content.length; i++){
out.println(content[i]); out.println(content[i]);
} }

View file

@ -4,7 +4,7 @@ var out = java.lang.System.out,
err = java.lang.System.err, err = java.lang.System.err,
entry = null; entry = null;
var content = [ var content = [
'/*********************', '',
'## Items module', '## Items module',
'The Items module provides a suite of functions - one for each possible item.', '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', '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++ ){
enumVals.sort(); enumVals.sort();
content = content.concat(enumVals); content = content.concat(enumVals);
content.push(''); content.push('');
content.push('***/');
for (var i = 0; i< content.length; i++){ for (var i = 0; i< content.length; i++){
out.println(content[i]); out.println(content[i]);
} }