UNPKG

@flymeth/datapackjs

Version:

A great library to create your own minecraft datapack with javascript!

1,931 lines 769 kB
{ "id": 0, "name": "DatapackJs", "kind": 1, "flags": {}, "children": [ { "id": 1, "name": "index", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { "id": 33, "name": "default", "kind": 8388608, "kindString": "Reference", "flags": {}, "sources": [ { "fileName": "src/index.ts", "line": 95, "character": 0, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/index.ts#L95" } ], "target": 10 }, { "id": 35, "name": "tools", "kind": 8388608, "kindString": "Reference", "flags": {}, "sources": [ { "fileName": "src/index.ts", "line": 9, "character": 12, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/index.ts#L9" } ], "target": 34 }, { "id": 909, "name": "utils", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { "id": 960, "name": "gameAdvancement", "kind": 128, "kindString": "Class", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represent an advancement" } ], "blockTags": [ { "tag": "@link", "content": [ { "kind": "text", "text": "https://minecraft.fandom.com/wiki/Advancement\r\nhttps://minecraft.fandom.com/wiki/Advancement/JSON_format" } ] } ] }, "children": [ { "id": 961, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 100, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L100" } ], "signatures": [ { "id": 962, "name": "new gameAdvancement", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { "id": 963, "name": "name", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The name of this advancement" } ] }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 964, "name": "option", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The data of the advancement" } ] }, "type": { "type": "reference", "id": 1047, "name": "AdvOptions" } } ], "type": { "type": "reference", "id": 960, "name": "gameAdvancement" } } ] }, { "id": 965, "name": "ObjectType", "kind": 1024, "kindString": "Property", "flags": { "isReadonly": true }, "sources": [ { "fileName": "src/src/advancement.ts", "line": 92, "character": 13, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L92" } ], "type": { "type": "literal", "value": "Advancement" }, "defaultValue": "\"Advancement\"" }, { "id": 983, "name": "conditions", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 120, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L120" } ], "type": { "type": "reflection", "declaration": { "id": 984, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 988, "name": "add", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 122, "character": 8, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L122" } ], "type": { "type": "reflection", "declaration": { "id": 989, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 122, "character": 13, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L122" } ], "signatures": [ { "id": 990, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 991, "name": "newConditions", "kind": 32768, "kindString": "Parameter", "flags": { "isRest": true }, "type": { "type": "array", "elementType": { "type": "reference", "id": 1080, "name": "AdvCondition" } } } ], "type": { "type": "reference", "id": 960, "name": "gameAdvancement" } } ] } }, "defaultValue": "..." }, { "id": 985, "name": "get", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 121, "character": 8, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L121" } ], "type": { "type": "reflection", "declaration": { "id": 986, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 121, "character": 13, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L121" } ], "signatures": [ { "id": 987, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "array", "elementType": { "type": "reference", "id": 1080, "name": "AdvCondition" } } } ] } }, "defaultValue": "..." }, { "id": 999, "name": "remove", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 134, "character": 8, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L134" } ], "type": { "type": "reflection", "declaration": { "id": 1000, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 134, "character": 16, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L134" } ], "signatures": [ { "id": 1001, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 1002, "name": "index", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "id": 960, "name": "gameAdvancement" } } ] } }, "defaultValue": "..." }, { "id": 996, "name": "reset", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 130, "character": 8, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L130" } ], "type": { "type": "reflection", "declaration": { "id": 997, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 130, "character": 15, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L130" } ], "signatures": [ { "id": 998, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "reference", "id": 960, "name": "gameAdvancement" } } ] } }, "defaultValue": "..." }, { "id": 992, "name": "set", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 126, "character": 8, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L126" } ], "type": { "type": "reflection", "declaration": { "id": 993, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 126, "character": 13, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L126" } ], "signatures": [ { "id": 994, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 995, "name": "conditions", "kind": 32768, "kindString": "Parameter", "flags": { "isRest": true }, "type": { "type": "array", "elementType": { "type": "reference", "id": 1080, "name": "AdvCondition" } } } ], "type": { "type": "reference", "id": 960, "name": "gameAdvancement" } } ] } }, "defaultValue": "..." } ], "groups": [ { "title": "Properties", "children": [ 988, 985, 999, 996, 992 ] } ], "sources": [ { "fileName": "src/src/advancement.ts", "line": 120, "character": 17, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L120" } ] } }, "defaultValue": "..." }, { "id": 966, "name": "name", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 93, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L93" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 967, "name": "namespace", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 94, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L94" } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 968, "name": "options", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 95, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L95" } ], "type": { "type": "reference", "id": 1047, "name": "AdvOptions" } }, { "id": 972, "name": "editBehaviors", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 110, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L110" } ], "signatures": [ { "id": 973, "name": "editBehaviors", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 974, "name": "isSecret", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 975, "name": "parent", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 976, "name": "whenComplete", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { "type": "reflection", "declaration": { "id": 977, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 979, "name": "announce", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/src/advancement.ts", "line": 110, "character": 88, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L110" } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 978, "name": "toast", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/src/advancement.ts", "line": 110, "character": 71, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L110" } ], "type": { "type": "intrinsic", "name": "boolean" } } ], "groups": [ { "title": "Properties", "children": [ 979, 978 ] } ], "sources": [ { "fileName": "src/src/advancement.ts", "line": 110, "character": 70, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L110" } ] } } } ], "type": { "type": "reference", "id": 960, "name": "gameAdvancement" } } ] }, { "id": 980, "name": "editReward", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 116, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L116" } ], "signatures": [ { "id": 981, "name": "editReward", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 982, "name": "newReward", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 1073, "name": "AdvRewards" } } ], "type": { "type": "intrinsic", "name": "void" } } ] }, { "id": 969, "name": "editType", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 106, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L106" } ], "signatures": [ { "id": 970, "name": "editType", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 971, "name": "newType", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "union", "types": [ { "type": "literal", "value": "challenge" }, { "type": "literal", "value": "goal" }, { "type": "literal", "value": "task" } ] } } ], "type": { "type": "reference", "id": 960, "name": "gameAdvancement" } } ] }, { "id": 1003, "name": "render", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/src/advancement.ts", "line": 141, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L141" } ], "signatures": [ { "id": 1004, "name": "render", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ] } ], "groups": [ { "title": "Constructors", "children": [ 961 ] }, { "title": "Properties", "children": [ 965, 983, 966, 967, 968 ] }, { "title": "Methods", "children": [ 972, 980, 969, 1003 ] } ], "sources": [ { "fileName": "src/src/advancement.ts", "line": 91, "character": 6, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/advancement.ts#L91" } ] }, { "id": 910, "name": "gameEvent", "kind": 128, "kindString": "Class", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represent a game event" } ] }, "children": [ { "id": 911, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "sources": [ { "fileName": "src/src/event.ts", "line": 20, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/event.ts#L20" } ], "signatures": [ { "id": 912, "name": "new gameEvent", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { "id": 913, "name": "name", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 1045, "name": "customEvents" } }, { "id": 914, "name": "exec", "kind": 32768, "kindString": "Parameter", "flags": { "isRest": true }, "comment": { "summary": [ { "kind": "text", "text": "Functions to execute when the event is triggered" } ] }, "type": { "type": "array", "elementType": { "type": "reference", "id": 923, "name": "gameFunction" } } } ], "type": { "type": "reference", "id": 910, "name": "gameEvent" } } ] }, { "id": 915, "name": "ObjectType", "kind": 1024, "kindString": "Property", "flags": { "isReadonly": true }, "sources": [ { "fileName": "src/src/event.ts", "line": 13, "character": 13, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/event.ts#L13" } ], "type": { "type": "literal", "value": "Event" }, "defaultValue": "\"Event\"" }, { "id": 917, "name": "functions", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/event.ts", "line": 16, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/event.ts#L16" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 923, "name": "gameFunction" } } }, { "id": 916, "name": "type", "kind": 1024, "kindString": "Property", "flags": { "isReadonly": true }, "sources": [ { "fileName": "src/src/event.ts", "line": 14, "character": 13, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/event.ts#L14" } ], "type": { "type": "reference", "id": 1045, "name": "customEvents" } }, { "id": 918, "name": "exec", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/src/event.ts", "line": 30, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/event.ts#L30" } ], "signatures": [ { "id": 919, "name": "exec", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Add new functions to execute when the event is triggered" } ] }, "parameters": [ { "id": 920, "name": "fcts", "kind": 32768, "kindString": "Parameter", "flags": { "isRest": true }, "comment": { "summary": [ { "kind": "text", "text": "Functions to execute when the event is triggered" } ] }, "type": { "type": "array", "elementType": { "type": "reference", "id": 923, "name": "gameFunction" } } } ], "type": { "type": "reference", "id": 910, "name": "gameEvent" } } ] }, { "id": 921, "name": "render", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/src/event.ts", "line": 35, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/event.ts#L35" } ], "signatures": [ { "id": 922, "name": "render", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ] } ], "groups": [ { "title": "Constructors", "children": [ 911 ] }, { "title": "Properties", "children": [ 915, 917, 916 ] }, { "title": "Methods", "children": [ 918, 921 ] } ], "sources": [ { "fileName": "src/src/event.ts", "line": 12, "character": 6, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/event.ts#L12" } ] }, { "id": 923, "name": "gameFunction", "kind": 128, "kindString": "Class", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represent a function" } ], "blockTags": [ { "tag": "@link", "content": [ { "kind": "text", "text": "https://minecraft.fandom.com/wiki/Function_(Java_Edition)" } ] } ] }, "children": [ { "id": 924, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "sources": [ { "fileName": "src/src/function.ts", "line": 23, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/function.ts#L23" } ], "signatures": [ { "id": 925, "name": "new gameFunction", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { "id": 926, "name": "name", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 927, "name": "exec", "kind": 32768, "kindString": "Parameter", "flags": { "isRest": true }, "type": { "type": "reference", "id": 1072, "name": "Commands" } } ], "type": { "type": "reference", "id": 923, "name": "gameFunction" } } ] }, { "id": 928, "name": "ObjectType", "kind": 1024, "kindString": "Property", "flags": { "isReadonly": true }, "sources": [ { "fileName": "src/src/function.ts", "line": 19, "character": 13, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/function.ts#L19" } ], "type": { "type": "literal", "value": "Function" }, "defaultValue": "\"Function\"" }, { "id": 931, "name": "commands", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/function.ts", "line": 22, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/function.ts#L22" } ], "type": { "type": "array", "elementType": { "type": "intrinsic", "name": "string" } } }, { "id": 929, "name": "name", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/function.ts", "line": 20, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/function.ts#L20" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 930, "name": "namespace", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/function.ts", "line": 21, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/function.ts#L21" } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 935, "name": "call", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/src/function.ts", "line": 34, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/function.ts#L34" } ], "signatures": [ { "id": 936, "name": "call", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ] }, { "id": 932, "name": "exec", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/src/function.ts", "line": 29, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/function.ts#L29" } ], "signatures": [ { "id": 933, "name": "exec", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 934, "name": "cmds", "kind": 32768, "kindString": "Parameter", "flags": { "isRest": true }, "type": { "type": "reference", "id": 1072, "name": "Commands" } } ], "type": { "type": "reference", "id": 923, "name": "gameFunction" } } ] }, { "id": 937, "name": "render", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/src/function.ts", "line": 38, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/function.ts#L38" } ], "signatures": [ { "id": 938, "name": "render", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ] } ], "groups": [ { "title": "Constructors", "children": [ 924 ] }, { "title": "Properties", "children": [ 928, 931, 929, 930 ] }, { "title": "Methods", "children": [ 935, 932, 937 ] } ], "sources": [ { "fileName": "src/src/function.ts", "line": 18, "character": 6, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/function.ts#L18" } ] }, { "id": 1005, "name": "gameLootTable", "kind": 128, "kindString": "Class", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represent a loot table\r\n# !! WARNING !!\r\n> This feature isn't support yet!\r\nThe loot tables are still under creation and takes time to make..." } ], "blockTags": [ { "tag": "@link", "content": [ { "kind": "text", "text": "https://minecraft.fandom.com/wiki/Loot_table\r\nhttps://minecraft.fandom.com/wiki/Loot_table#Recurring_JSON_structures_within_loot_tables_and_other_data_pack_files" } ] } ] }, "children": [ { "id": 1006, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "sources": [ { "fileName": "src/src/loottable.ts", "line": 52, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L52" } ], "signatures": [ { "id": 1007, "name": "new gameLootTable", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { "id": 1008, "name": "name", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The name of the loot table" } ] }, "type": { "type": "intrinsic", "name": "string" } }, { "id": 1009, "name": "type", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The type of that loot table (if it affects mob or blocks)" } ] }, "type": { "type": "reference", "id": 1079, "name": "lootTableType" } }, { "id": 1010, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The loot table's behavior" } ] }, "type": { "type": "reference", "id": 1066, "name": "lootTableData" } }, { "id": 1011, "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "The id of that loot table (if it's set to " }, { "kind": "code", "text": "`0`" }, { "kind": "text", "text": " or " }, { "kind": "code", "text": "`undefined`" }, { "kind": "text", "text": ", this will be randomly generated)" } ] }, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "id": 1005, "name": "gameLootTable" } } ] }, { "id": 1012, "name": "ObjectType", "kind": 1024, "kindString": "Property", "flags": { "isReadonly": true }, "sources": [ { "fileName": "src/src/loottable.ts", "line": 36, "character": 13, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L36" } ], "type": { "type": "literal", "value": "LootTable" }, "defaultValue": "\"LootTable\"" }, { "id": 1020, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/loottable.ts", "line": 44, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L44" } ], "type": { "type": "reference", "id": 1066, "name": "lootTableData" } }, { "id": 1014, "name": "name", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/loottable.ts", "line": 38, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L38" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 1013, "name": "namespace", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/loottable.ts", "line": 37, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L37" } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "undefined" }, { "type": "intrinsic", "name": "string" } ] } }, { "id": 1019, "name": "seed", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/src/loottable.ts", "line": 43, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L43" } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 1015, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/loottable.ts", "line": 39, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L39" } ], "type": { "type": "reflection", "declaration": { "id": 1016, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 1017, "name": "key", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/loottable.ts", "line": 40, "character": 8, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L40" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 1018, "name": "key_seed", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/src/loottable.ts", "line": 41, "character": 8, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L41" } ], "type": { "type": "intrinsic", "name": "string" } } ], "groups": [ { "title": "Properties", "children": [ 1017, 1018 ] } ], "sources": [ { "fileName": "src/src/loottable.ts", "line": 39, "character": 10, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L39" } ] } } }, { "id": 1021, "name": "render", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/src/loottable.ts", "line": 63, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L63" } ], "signatures": [ { "id": 1022, "name": "render", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ] } ], "groups": [ { "title": "Constructors", "children": [ 1006 ] }, { "title": "Properties", "children": [ 1012, 1020, 1014, 1013, 1019, 1015 ] }, { "title": "Methods", "children": [ 1021 ] } ], "sources": [ { "fileName": "src/src/loottable.ts", "line": 35, "character": 6, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/loottable.ts#L35" } ] }, { "id": 1023, "name": "gameRecipe", "kind": 128, "kindString": "Class", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represent a game recipe" } ], "blockTags": [ { "tag": "@link", "content": [ { "kind": "text", "text": "https://minecraft.fandom.com/wiki/Recipe\r\nhttps://minecraft.fandom.com/wiki/Recipe#JSON_format" } ] } ] }, "children": [ { "id": 1024, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "sources": [ { "fileName": "src/src/recipe.ts", "line": 20, "character": 4, "url": "https://github.com/Flymeth/datapackjs/blob/4471d7c/src/src/recipe.ts#L20" } ], "signatures": [ { "id": 1025, "name": "new gameRecipe", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { "id": 1026, "name": "name", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The recipe's