diff --git a/docs/api.html b/docs/api.html
index bc4c3f0..91d1318 100644
--- a/docs/api.html
+++ b/docs/api.html
@@ -54,11 +54,15 @@
@@ -77,9 +81,36 @@
+ -
+
+ asm.getEgg (entity)
+
+ -
+ Retrieves egg that spawns specified entity.
+
+
+
Parameters:
+
+ - entity
+ string
+ Entity name spawned by egg.
+
+
+
+ Returns:
+
+
+ string
+ Egg name or nil
.
+
+
+
+
+
+
-
- asm.registerEggRecipe (name, ingredients)
+ asm.registerEggRecipe (name, ingredients)
-
Adds a craft recipe for an egg.
@@ -89,10 +120,10 @@
Parameters:
- - name
+
- name
Name of spawnegg that will be created from recipe.
- - ingredients
+
- ingredients
Items used for recipe in addition to
spawneggs:egg
. Can be string or list.
@@ -104,7 +135,7 @@
-
- asm.registerEgg (def)
+ asm.registerEgg (def)
-
Registers new egg in game.
@@ -114,7 +145,7 @@
Parameters:
@@ -138,25 +169,27 @@
Fields:
- - name
+
- name
string
Name of the egg. Will be appended to "spawneggs:".
- - title (optional)
+
- title
string
Description displayed for item.
+ (optional)
- - inventory_image
+
- inventory_image
string
Image displayed in inventory.
- - spawn
+
- spawn
string
Entity that will be spawned from egg.
- - ingredients (optional)
+
- ingredients
table
Ingredients to use, in addition to
spawneggs:egg
, to register craft recipe. Can be a table or string.
+ (optional)
@@ -171,8 +204,8 @@