bc-minecraft-bedrock-vanilla-data 1.19.4-0.0 → 1.19.40-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/main.d.ts +30 -30
- package/lib/src/main.js +30 -30
- package/package.json +1 -1
package/lib/src/main.d.ts
CHANGED
|
@@ -20,52 +20,52 @@ export declare namespace MinecraftData {
|
|
|
20
20
|
namespace BehaviorPack {
|
|
21
21
|
/**Gets the block by the given identification
|
|
22
22
|
* @param id The identification of the object to find
|
|
23
|
-
* @param edu
|
|
23
|
+
* @param edu Whether or not to include education data
|
|
24
24
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
25
25
|
function getBlock(id: string, edu?: boolean): Types.BehaviorPack.Block | undefined;
|
|
26
26
|
/**Gets the entity by the given identification
|
|
27
27
|
* @param id The identification of the object to find
|
|
28
|
-
* @param edu
|
|
28
|
+
* @param edu Whether or not to include education data
|
|
29
29
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
30
30
|
function getEntity(id: string, edu?: boolean): Types.BehaviorPack.Entity | undefined;
|
|
31
31
|
/**Gets the item by the given identification
|
|
32
32
|
* @param id The identification of the object to find
|
|
33
|
-
* @param edu
|
|
33
|
+
* @param edu Whether or not to include education data
|
|
34
34
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
35
35
|
function getItem(id: string, edu?: boolean): Types.BehaviorPack.Item | undefined;
|
|
36
36
|
/**Gets the loot table by the given identification
|
|
37
37
|
* @param id The identification of the object to find
|
|
38
|
-
* @param edu
|
|
38
|
+
* @param edu Whether or not to include education data
|
|
39
39
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
40
40
|
function getLootTable(id: string, edu?: boolean): Types.BehaviorPack.LootTable | undefined;
|
|
41
41
|
/**Gets the trading by the given identification
|
|
42
42
|
* @param id The identification of the object to find
|
|
43
|
-
* @param edu
|
|
43
|
+
* @param edu Whether or not to include education data
|
|
44
44
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
45
45
|
function getTrading(id: string, edu?: boolean): Types.BehaviorPack.Trading | undefined;
|
|
46
46
|
/**Returns true or false if the given identification exists
|
|
47
47
|
* @param id The identification of the object to find
|
|
48
|
-
* @param edu
|
|
48
|
+
* @param edu Whether or not to include education data
|
|
49
49
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
50
50
|
function hasBlock(id: string, edu?: boolean): boolean;
|
|
51
51
|
/**Returns true or false if the given identification exists
|
|
52
52
|
* @param id The identification of the object to find
|
|
53
|
-
* @param edu
|
|
53
|
+
* @param edu Whether or not to include education data
|
|
54
54
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
55
55
|
function hasEntity(id: string, edu?: boolean): boolean;
|
|
56
56
|
/**Returns true or false if the given identification exists
|
|
57
57
|
* @param id The identification of the object to find
|
|
58
|
-
* @param edu
|
|
58
|
+
* @param edu Whether or not to include education data
|
|
59
59
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
60
60
|
function hasItem(id: string, edu?: boolean): boolean;
|
|
61
61
|
/**Returns true or false if the given identification exists
|
|
62
62
|
* @param id The identification of the object to find
|
|
63
|
-
* @param edu
|
|
63
|
+
* @param edu Whether or not to include education data
|
|
64
64
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
65
65
|
function hasLootTable(id: string, edu?: boolean): boolean;
|
|
66
66
|
/**Returns true or false if the given identification exists
|
|
67
67
|
* @param id The identification of the object to find
|
|
68
|
-
* @param edu
|
|
68
|
+
* @param edu Whether or not to include education data
|
|
69
69
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
70
70
|
function hasTrading(id: string, edu?: boolean): boolean;
|
|
71
71
|
}
|
|
@@ -73,102 +73,102 @@ export declare namespace MinecraftData {
|
|
|
73
73
|
namespace ResourcePack {
|
|
74
74
|
/**Gets the animation controller by the given identification
|
|
75
75
|
* @param id The identification of the object to find
|
|
76
|
-
* @param edu
|
|
76
|
+
* @param edu Whether or not to include education data
|
|
77
77
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
78
78
|
function getAnimationController(id: string, edu?: boolean): Types.ResourcePack.AnimationController | undefined;
|
|
79
79
|
/**Gets the animation by the given identification
|
|
80
80
|
* @param id The identification of the object to find
|
|
81
|
-
* @param edu
|
|
81
|
+
* @param edu Whether or not to include education data
|
|
82
82
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
83
83
|
function getAnimation(id: string, edu?: boolean): Types.ResourcePack.Animation | undefined;
|
|
84
84
|
/**Gets the animation controller by the given identification
|
|
85
85
|
* @param id The identification of the object to find
|
|
86
|
-
* @param edu
|
|
86
|
+
* @param edu Whether or not to include education data
|
|
87
87
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
88
88
|
function getEntity(id: string, edu?: boolean): Types.ResourcePack.Entity | undefined;
|
|
89
89
|
/**Gets the fog by the given identification
|
|
90
90
|
* @param id The identification of the object to find
|
|
91
|
-
* @param edu
|
|
91
|
+
* @param edu Whether or not to include education data
|
|
92
92
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
93
93
|
function getFog(id: string, edu?: boolean): Types.ResourcePack.Fog | undefined;
|
|
94
94
|
/**Gets the material by the given identification
|
|
95
95
|
* @param id The identification of the object to find
|
|
96
|
-
* @param edu
|
|
96
|
+
* @param edu Whether or not to include education data
|
|
97
97
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
98
98
|
function getMaterial(id: string, edu?: boolean): Types.ResourcePack.Material | undefined;
|
|
99
99
|
/**Gets the model by the given identification
|
|
100
100
|
* @param id The identification of the object to find
|
|
101
|
-
* @param edu
|
|
101
|
+
* @param edu Whether or not to include education data
|
|
102
102
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
103
103
|
function getModel(id: string, edu?: boolean): Types.ResourcePack.Model | undefined;
|
|
104
104
|
/**Gets the particle by the given identification
|
|
105
105
|
* @param id The identification of the object to find
|
|
106
|
-
* @param edu
|
|
106
|
+
* @param edu Whether or not to include education data
|
|
107
107
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
108
108
|
function getParticle(id: string, edu?: boolean): Types.ResourcePack.Particle | undefined;
|
|
109
109
|
/**Gets the render controller by the given identification
|
|
110
110
|
* @param id The identification of the object to find
|
|
111
|
-
* @param edu
|
|
111
|
+
* @param edu Whether or not to include education data
|
|
112
112
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
113
113
|
function getRenderController(id: string, edu?: boolean): Types.ResourcePack.RenderController | undefined;
|
|
114
114
|
/**Gets the sound by the given identification
|
|
115
115
|
* @param id The identification of the object to find
|
|
116
|
-
* @param edu
|
|
116
|
+
* @param edu Whether or not to include education data
|
|
117
117
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
118
118
|
function getSound(id: string, edu?: boolean): Types.ResourcePack.Sound | undefined;
|
|
119
119
|
/**Gets the texture by the given identification
|
|
120
120
|
* @param id The identification of the object to find
|
|
121
|
-
* @param edu
|
|
121
|
+
* @param edu Whether or not to include education data
|
|
122
122
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
123
123
|
function getTexture(id: string, edu?: boolean): Types.ResourcePack.Texture | undefined;
|
|
124
124
|
/**Returns true or false if the given identification exists
|
|
125
125
|
* @param id The identification of the object to find
|
|
126
|
-
* @param edu
|
|
126
|
+
* @param edu Whether or not to include education data
|
|
127
127
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
128
128
|
function hasAnimationController(id: string, edu?: boolean): boolean;
|
|
129
129
|
/**Returns true or false if the given identification exists
|
|
130
130
|
* @param id The identification of the object to find
|
|
131
|
-
* @param edu
|
|
131
|
+
* @param edu Whether or not to include education data
|
|
132
132
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
133
133
|
function hasAnimation(id: string, edu?: boolean): boolean;
|
|
134
134
|
/**Returns true or false if the given identification exists
|
|
135
135
|
* @param id The identification of the object to find
|
|
136
|
-
* @param edu
|
|
136
|
+
* @param edu Whether or not to include education data
|
|
137
137
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
138
138
|
function hasEntity(id: string, edu?: boolean): boolean;
|
|
139
139
|
/**Returns true or false if the given identification exists
|
|
140
140
|
* @param id The identification of the object to find
|
|
141
|
-
* @param edu
|
|
141
|
+
* @param edu Whether or not to include education data
|
|
142
142
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
143
143
|
function hasFog(id: string, edu?: boolean): boolean;
|
|
144
144
|
/**Returns true or false if the given identification exists
|
|
145
145
|
* @param id The identification of the object to find
|
|
146
|
-
* @param edu
|
|
146
|
+
* @param edu Whether or not to include education data
|
|
147
147
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
148
148
|
function hasMaterial(id: string, edu?: boolean): boolean;
|
|
149
149
|
/**Returns true or false if the given identification exists
|
|
150
150
|
* @param id The identification of the object to find
|
|
151
|
-
* @param edu
|
|
151
|
+
* @param edu Whether or not to include education data
|
|
152
152
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
153
153
|
function hasModel(id: string, edu?: boolean): boolean;
|
|
154
154
|
/**Returns true or false if the given identification exists
|
|
155
155
|
* @param id The identification of the object to find
|
|
156
|
-
* @param edu
|
|
156
|
+
* @param edu Whether or not to include education data
|
|
157
157
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
158
158
|
function hasParticle(id: string, edu?: boolean): boolean;
|
|
159
159
|
/**Returns true or false if the given identification exists
|
|
160
160
|
* @param id The identification of the object to find
|
|
161
|
-
* @param edu
|
|
161
|
+
* @param edu Whether or not to include education data
|
|
162
162
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
163
163
|
function hasRenderController(id: string, edu?: boolean): boolean;
|
|
164
164
|
/**Returns true or false if the given identification exists
|
|
165
165
|
* @param id The identification of the object to find
|
|
166
|
-
* @param edu
|
|
166
|
+
* @param edu Whether or not to include education data
|
|
167
167
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
168
168
|
function hasSound(id: string, edu?: boolean): boolean;
|
|
169
169
|
/**Returns true or false if the given identification exists
|
|
170
170
|
* @param id The identification of the object to find
|
|
171
|
-
* @param edu
|
|
171
|
+
* @param edu Whether or not to include education data
|
|
172
172
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
173
173
|
function hasTexture(id: string, edu?: boolean): boolean;
|
|
174
174
|
}
|
package/lib/src/main.js
CHANGED
|
@@ -70,7 +70,7 @@ var MinecraftData;
|
|
|
70
70
|
(function (BehaviorPack) {
|
|
71
71
|
/**Gets the block by the given identification
|
|
72
72
|
* @param id The identification of the object to find
|
|
73
|
-
* @param edu
|
|
73
|
+
* @param edu Whether or not to include education data
|
|
74
74
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
75
75
|
function getBlock(id, edu = false) {
|
|
76
76
|
return get(id, edu, MinecraftData.vanilla.BehaviorPack.blocks, MinecraftData.edu.BehaviorPack.blocks);
|
|
@@ -78,7 +78,7 @@ var MinecraftData;
|
|
|
78
78
|
BehaviorPack.getBlock = getBlock;
|
|
79
79
|
/**Gets the entity by the given identification
|
|
80
80
|
* @param id The identification of the object to find
|
|
81
|
-
* @param edu
|
|
81
|
+
* @param edu Whether or not to include education data
|
|
82
82
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
83
83
|
function getEntity(id, edu = false) {
|
|
84
84
|
return get(id, edu, MinecraftData.vanilla.BehaviorPack.entities, MinecraftData.edu.BehaviorPack.entities);
|
|
@@ -86,7 +86,7 @@ var MinecraftData;
|
|
|
86
86
|
BehaviorPack.getEntity = getEntity;
|
|
87
87
|
/**Gets the item by the given identification
|
|
88
88
|
* @param id The identification of the object to find
|
|
89
|
-
* @param edu
|
|
89
|
+
* @param edu Whether or not to include education data
|
|
90
90
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
91
91
|
function getItem(id, edu = false) {
|
|
92
92
|
return get(id, edu, MinecraftData.vanilla.BehaviorPack.items, MinecraftData.edu.BehaviorPack.items);
|
|
@@ -94,7 +94,7 @@ var MinecraftData;
|
|
|
94
94
|
BehaviorPack.getItem = getItem;
|
|
95
95
|
/**Gets the loot table by the given identification
|
|
96
96
|
* @param id The identification of the object to find
|
|
97
|
-
* @param edu
|
|
97
|
+
* @param edu Whether or not to include education data
|
|
98
98
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
99
99
|
function getLootTable(id, edu = false) {
|
|
100
100
|
return getStr(id, edu, MinecraftData.vanilla.BehaviorPack.loot_tables, MinecraftData.edu.BehaviorPack.loot_tables);
|
|
@@ -102,7 +102,7 @@ var MinecraftData;
|
|
|
102
102
|
BehaviorPack.getLootTable = getLootTable;
|
|
103
103
|
/**Gets the trading by the given identification
|
|
104
104
|
* @param id The identification of the object to find
|
|
105
|
-
* @param edu
|
|
105
|
+
* @param edu Whether or not to include education data
|
|
106
106
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
107
107
|
function getTrading(id, edu = false) {
|
|
108
108
|
return getStr(id, edu, MinecraftData.vanilla.BehaviorPack.trading, MinecraftData.edu.BehaviorPack.trading);
|
|
@@ -110,7 +110,7 @@ var MinecraftData;
|
|
|
110
110
|
BehaviorPack.getTrading = getTrading;
|
|
111
111
|
/**Returns true or false if the given identification exists
|
|
112
112
|
* @param id The identification of the object to find
|
|
113
|
-
* @param edu
|
|
113
|
+
* @param edu Whether or not to include education data
|
|
114
114
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
115
115
|
function hasBlock(id, edu = false) {
|
|
116
116
|
return getBlock(id, edu) !== undefined;
|
|
@@ -118,7 +118,7 @@ var MinecraftData;
|
|
|
118
118
|
BehaviorPack.hasBlock = hasBlock;
|
|
119
119
|
/**Returns true or false if the given identification exists
|
|
120
120
|
* @param id The identification of the object to find
|
|
121
|
-
* @param edu
|
|
121
|
+
* @param edu Whether or not to include education data
|
|
122
122
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
123
123
|
function hasEntity(id, edu = false) {
|
|
124
124
|
return getEntity(id, edu) !== undefined;
|
|
@@ -126,7 +126,7 @@ var MinecraftData;
|
|
|
126
126
|
BehaviorPack.hasEntity = hasEntity;
|
|
127
127
|
/**Returns true or false if the given identification exists
|
|
128
128
|
* @param id The identification of the object to find
|
|
129
|
-
* @param edu
|
|
129
|
+
* @param edu Whether or not to include education data
|
|
130
130
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
131
131
|
function hasItem(id, edu = false) {
|
|
132
132
|
return getItem(id, edu) !== undefined;
|
|
@@ -134,7 +134,7 @@ var MinecraftData;
|
|
|
134
134
|
BehaviorPack.hasItem = hasItem;
|
|
135
135
|
/**Returns true or false if the given identification exists
|
|
136
136
|
* @param id The identification of the object to find
|
|
137
|
-
* @param edu
|
|
137
|
+
* @param edu Whether or not to include education data
|
|
138
138
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
139
139
|
function hasLootTable(id, edu = false) {
|
|
140
140
|
return getLootTable(id, edu) !== undefined;
|
|
@@ -142,7 +142,7 @@ var MinecraftData;
|
|
|
142
142
|
BehaviorPack.hasLootTable = hasLootTable;
|
|
143
143
|
/**Returns true or false if the given identification exists
|
|
144
144
|
* @param id The identification of the object to find
|
|
145
|
-
* @param edu
|
|
145
|
+
* @param edu Whether or not to include education data
|
|
146
146
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
147
147
|
function hasTrading(id, edu = false) {
|
|
148
148
|
return getTrading(id, edu) !== undefined;
|
|
@@ -154,7 +154,7 @@ var MinecraftData;
|
|
|
154
154
|
(function (ResourcePack) {
|
|
155
155
|
/**Gets the animation controller by the given identification
|
|
156
156
|
* @param id The identification of the object to find
|
|
157
|
-
* @param edu
|
|
157
|
+
* @param edu Whether or not to include education data
|
|
158
158
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
159
159
|
function getAnimationController(id, edu = false) {
|
|
160
160
|
return getStr(id, edu, MinecraftData.vanilla.ResourcePack.animation_controllers, MinecraftData.edu.ResourcePack.animation_controllers);
|
|
@@ -162,7 +162,7 @@ var MinecraftData;
|
|
|
162
162
|
ResourcePack.getAnimationController = getAnimationController;
|
|
163
163
|
/**Gets the animation by the given identification
|
|
164
164
|
* @param id The identification of the object to find
|
|
165
|
-
* @param edu
|
|
165
|
+
* @param edu Whether or not to include education data
|
|
166
166
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
167
167
|
function getAnimation(id, edu = false) {
|
|
168
168
|
return getStr(id, edu, MinecraftData.vanilla.ResourcePack.animations, MinecraftData.edu.ResourcePack.animations);
|
|
@@ -170,7 +170,7 @@ var MinecraftData;
|
|
|
170
170
|
ResourcePack.getAnimation = getAnimation;
|
|
171
171
|
/**Gets the animation controller by the given identification
|
|
172
172
|
* @param id The identification of the object to find
|
|
173
|
-
* @param edu
|
|
173
|
+
* @param edu Whether or not to include education data
|
|
174
174
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
175
175
|
function getEntity(id, edu = false) {
|
|
176
176
|
return get(id, edu, MinecraftData.vanilla.ResourcePack.entities, MinecraftData.edu.ResourcePack.entities);
|
|
@@ -178,7 +178,7 @@ var MinecraftData;
|
|
|
178
178
|
ResourcePack.getEntity = getEntity;
|
|
179
179
|
/**Gets the fog by the given identification
|
|
180
180
|
* @param id The identification of the object to find
|
|
181
|
-
* @param edu
|
|
181
|
+
* @param edu Whether or not to include education data
|
|
182
182
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
183
183
|
function getFog(id, edu = false) {
|
|
184
184
|
return getStr(id, edu, MinecraftData.vanilla.ResourcePack.fogs, MinecraftData.edu.ResourcePack.fogs);
|
|
@@ -186,7 +186,7 @@ var MinecraftData;
|
|
|
186
186
|
ResourcePack.getFog = getFog;
|
|
187
187
|
/**Gets the material by the given identification
|
|
188
188
|
* @param id The identification of the object to find
|
|
189
|
-
* @param edu
|
|
189
|
+
* @param edu Whether or not to include education data
|
|
190
190
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
191
191
|
function getMaterial(id, edu = false) {
|
|
192
192
|
return getStr(id, edu, MinecraftData.vanilla.ResourcePack.materials, MinecraftData.edu.ResourcePack.materials);
|
|
@@ -194,7 +194,7 @@ var MinecraftData;
|
|
|
194
194
|
ResourcePack.getMaterial = getMaterial;
|
|
195
195
|
/**Gets the model by the given identification
|
|
196
196
|
* @param id The identification of the object to find
|
|
197
|
-
* @param edu
|
|
197
|
+
* @param edu Whether or not to include education data
|
|
198
198
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
199
199
|
function getModel(id, edu = false) {
|
|
200
200
|
return getStr(id, edu, MinecraftData.vanilla.ResourcePack.models, MinecraftData.edu.ResourcePack.models);
|
|
@@ -202,7 +202,7 @@ var MinecraftData;
|
|
|
202
202
|
ResourcePack.getModel = getModel;
|
|
203
203
|
/**Gets the particle by the given identification
|
|
204
204
|
* @param id The identification of the object to find
|
|
205
|
-
* @param edu
|
|
205
|
+
* @param edu Whether or not to include education data
|
|
206
206
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
207
207
|
function getParticle(id, edu = false) {
|
|
208
208
|
return getStr(id, edu, MinecraftData.vanilla.ResourcePack.particles, MinecraftData.edu.ResourcePack.particles);
|
|
@@ -210,7 +210,7 @@ var MinecraftData;
|
|
|
210
210
|
ResourcePack.getParticle = getParticle;
|
|
211
211
|
/**Gets the render controller by the given identification
|
|
212
212
|
* @param id The identification of the object to find
|
|
213
|
-
* @param edu
|
|
213
|
+
* @param edu Whether or not to include education data
|
|
214
214
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
215
215
|
function getRenderController(id, edu = false) {
|
|
216
216
|
return getStr(id, edu, MinecraftData.vanilla.ResourcePack.render_controllers, MinecraftData.edu.ResourcePack.render_controllers);
|
|
@@ -218,7 +218,7 @@ var MinecraftData;
|
|
|
218
218
|
ResourcePack.getRenderController = getRenderController;
|
|
219
219
|
/**Gets the sound by the given identification
|
|
220
220
|
* @param id The identification of the object to find
|
|
221
|
-
* @param edu
|
|
221
|
+
* @param edu Whether or not to include education data
|
|
222
222
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
223
223
|
function getSound(id, edu = false) {
|
|
224
224
|
return getStr(id, edu, MinecraftData.vanilla.ResourcePack.sounds, MinecraftData.edu.ResourcePack.sounds);
|
|
@@ -226,7 +226,7 @@ var MinecraftData;
|
|
|
226
226
|
ResourcePack.getSound = getSound;
|
|
227
227
|
/**Gets the texture by the given identification
|
|
228
228
|
* @param id The identification of the object to find
|
|
229
|
-
* @param edu
|
|
229
|
+
* @param edu Whether or not to include education data
|
|
230
230
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
231
231
|
function getTexture(id, edu = false) {
|
|
232
232
|
return getStr(id, edu, MinecraftData.vanilla.ResourcePack.textures, MinecraftData.edu.ResourcePack.textures);
|
|
@@ -234,7 +234,7 @@ var MinecraftData;
|
|
|
234
234
|
ResourcePack.getTexture = getTexture;
|
|
235
235
|
/**Returns true or false if the given identification exists
|
|
236
236
|
* @param id The identification of the object to find
|
|
237
|
-
* @param edu
|
|
237
|
+
* @param edu Whether or not to include education data
|
|
238
238
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
239
239
|
function hasAnimationController(id, edu = false) {
|
|
240
240
|
return getAnimationController(id, edu) !== undefined;
|
|
@@ -242,7 +242,7 @@ var MinecraftData;
|
|
|
242
242
|
ResourcePack.hasAnimationController = hasAnimationController;
|
|
243
243
|
/**Returns true or false if the given identification exists
|
|
244
244
|
* @param id The identification of the object to find
|
|
245
|
-
* @param edu
|
|
245
|
+
* @param edu Whether or not to include education data
|
|
246
246
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
247
247
|
function hasAnimation(id, edu = false) {
|
|
248
248
|
return getAnimation(id, edu) !== undefined;
|
|
@@ -250,7 +250,7 @@ var MinecraftData;
|
|
|
250
250
|
ResourcePack.hasAnimation = hasAnimation;
|
|
251
251
|
/**Returns true or false if the given identification exists
|
|
252
252
|
* @param id The identification of the object to find
|
|
253
|
-
* @param edu
|
|
253
|
+
* @param edu Whether or not to include education data
|
|
254
254
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
255
255
|
function hasEntity(id, edu = false) {
|
|
256
256
|
return getEntity(id, edu) !== undefined;
|
|
@@ -258,7 +258,7 @@ var MinecraftData;
|
|
|
258
258
|
ResourcePack.hasEntity = hasEntity;
|
|
259
259
|
/**Returns true or false if the given identification exists
|
|
260
260
|
* @param id The identification of the object to find
|
|
261
|
-
* @param edu
|
|
261
|
+
* @param edu Whether or not to include education data
|
|
262
262
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
263
263
|
function hasFog(id, edu = false) {
|
|
264
264
|
return getFog(id, edu) !== undefined;
|
|
@@ -266,7 +266,7 @@ var MinecraftData;
|
|
|
266
266
|
ResourcePack.hasFog = hasFog;
|
|
267
267
|
/**Returns true or false if the given identification exists
|
|
268
268
|
* @param id The identification of the object to find
|
|
269
|
-
* @param edu
|
|
269
|
+
* @param edu Whether or not to include education data
|
|
270
270
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
271
271
|
function hasMaterial(id, edu = false) {
|
|
272
272
|
return getMaterial(id, edu) !== undefined;
|
|
@@ -274,7 +274,7 @@ var MinecraftData;
|
|
|
274
274
|
ResourcePack.hasMaterial = hasMaterial;
|
|
275
275
|
/**Returns true or false if the given identification exists
|
|
276
276
|
* @param id The identification of the object to find
|
|
277
|
-
* @param edu
|
|
277
|
+
* @param edu Whether or not to include education data
|
|
278
278
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
279
279
|
function hasModel(id, edu = false) {
|
|
280
280
|
return getModel(id, edu) !== undefined;
|
|
@@ -282,7 +282,7 @@ var MinecraftData;
|
|
|
282
282
|
ResourcePack.hasModel = hasModel;
|
|
283
283
|
/**Returns true or false if the given identification exists
|
|
284
284
|
* @param id The identification of the object to find
|
|
285
|
-
* @param edu
|
|
285
|
+
* @param edu Whether or not to include education data
|
|
286
286
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
287
287
|
function hasParticle(id, edu = false) {
|
|
288
288
|
return getParticle(id, edu) !== undefined;
|
|
@@ -290,7 +290,7 @@ var MinecraftData;
|
|
|
290
290
|
ResourcePack.hasParticle = hasParticle;
|
|
291
291
|
/**Returns true or false if the given identification exists
|
|
292
292
|
* @param id The identification of the object to find
|
|
293
|
-
* @param edu
|
|
293
|
+
* @param edu Whether or not to include education data
|
|
294
294
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
295
295
|
function hasRenderController(id, edu = false) {
|
|
296
296
|
return getRenderController(id, edu) !== undefined;
|
|
@@ -298,7 +298,7 @@ var MinecraftData;
|
|
|
298
298
|
ResourcePack.hasRenderController = hasRenderController;
|
|
299
299
|
/**Returns true or false if the given identification exists
|
|
300
300
|
* @param id The identification of the object to find
|
|
301
|
-
* @param edu
|
|
301
|
+
* @param edu Whether or not to include education data
|
|
302
302
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
303
303
|
function hasSound(id, edu = false) {
|
|
304
304
|
return getSound(id, edu) !== undefined;
|
|
@@ -306,7 +306,7 @@ var MinecraftData;
|
|
|
306
306
|
ResourcePack.hasSound = hasSound;
|
|
307
307
|
/**Returns true or false if the given identification exists
|
|
308
308
|
* @param id The identification of the object to find
|
|
309
|
-
* @param edu
|
|
309
|
+
* @param edu Whether or not to include education data
|
|
310
310
|
* @returns A object with the specified id or undefined if nothing was found*/
|
|
311
311
|
function hasTexture(id, edu = false) {
|
|
312
312
|
return getTexture(id, edu) !== undefined;
|
package/package.json
CHANGED