11
11
import com .mcmoddev .lib .init .Materials ;
12
12
import com .mcmoddev .lib .material .IMMDBurnableObject ;
13
13
import com .mcmoddev .lib .material .MMDMaterial ;
14
- //import com.mcmoddev.lib.util.Config;
15
14
import com .mcmoddev .lib .util .Config .Options ;
16
15
17
- import net .minecraft .item .ItemStack ;
18
-
19
16
import net .minecraftforge .fml .common .Mod ;
20
- import net .minecraftforge .fml .common .eventhandler .EventPriority ;
21
17
import net .minecraftforge .fml .common .eventhandler .SubscribeEvent ;
22
18
23
19
@ Mod .EventBusSubscriber (modid =BaseMetals .MODID )
@@ -27,21 +23,8 @@ private VanillaItems() {
27
23
// TODO Auto-generated constructor stub
28
24
}
29
25
30
- @ SubscribeEvent ( priority = EventPriority . HIGHEST )
26
+ @ SubscribeEvent
31
27
public static void registerItemsEvent (MMDLibRegisterItems ev ) {
32
- Materials .getMaterialByName (MaterialNames .CHARCOAL ).addNewItemFromItemStack (Names .INGOT ,
33
- new ItemStack (net .minecraft .init .Items .COAL , 1 , 1 ));
34
- Materials .getMaterialByName (MaterialNames .COAL ).addNewItemFromItemStack (Names .INGOT ,
35
- new ItemStack (net .minecraft .init .Items .COAL , 1 , 0 ));
36
-
37
- Materials .getMaterialByName (MaterialNames .EMERALD ).addNewItem (Names .INGOT ,
38
- net .minecraft .init .Items .EMERALD );
39
- Materials .getMaterialByName (MaterialNames .LAPIS ).addNewItemFromItemStack (Names .INGOT ,
40
- new ItemStack (net .minecraft .init .Items .DYE , 1 , 4 ));
41
- Materials .getMaterialByName (MaterialNames .QUARTZ ).addNewItem (Names .INGOT ,
42
- net .minecraft .init .Items .QUARTZ );
43
- Materials .getMaterialByName (MaterialNames .REDSTONE ).addNewItem (Names .POWDER ,
44
- net .minecraft .init .Items .REDSTONE );
45
28
addDiamondBits ();
46
29
addGoldBits ();
47
30
addIronBits ();
@@ -172,18 +155,6 @@ private static void doSpecialMats() {
172
155
private static void addDiamondBits () {
173
156
final MMDMaterial diamond = Materials .getMaterialByName (MaterialNames .DIAMOND );
174
157
175
- diamond .addNewItem (Names .AXE , net .minecraft .init .Items .DIAMOND_AXE );
176
- diamond .addNewItem (Names .HOE , net .minecraft .init .Items .DIAMOND_HOE );
177
- diamond .addNewItem (Names .HORSE_ARMOR , net .minecraft .init .Items .DIAMOND_HORSE_ARMOR );
178
- diamond .addNewItem (Names .PICKAXE , net .minecraft .init .Items .DIAMOND_PICKAXE );
179
- diamond .addNewItem (Names .SHOVEL , net .minecraft .init .Items .DIAMOND_SHOVEL );
180
- diamond .addNewItem (Names .SWORD , net .minecraft .init .Items .DIAMOND_SWORD );
181
- diamond .addNewItem (Names .BOOTS , net .minecraft .init .Items .DIAMOND_BOOTS );
182
- diamond .addNewItem (Names .CHESTPLATE , net .minecraft .init .Items .DIAMOND_CHESTPLATE );
183
- diamond .addNewItem (Names .HELMET , net .minecraft .init .Items .DIAMOND_HELMET );
184
- diamond .addNewItem (Names .LEGGINGS , net .minecraft .init .Items .DIAMOND_LEGGINGS );
185
- diamond .addNewItem (Names .INGOT , net .minecraft .init .Items .DIAMOND );
186
-
187
158
if (Materials .hasMaterial (MaterialNames .DIAMOND )) {
188
159
create (Names .BLEND , diamond );
189
160
create (Names .NUGGET , diamond );
@@ -210,19 +181,6 @@ private static void addDiamondBits() {
210
181
private static void addGoldBits () {
211
182
final MMDMaterial gold = Materials .getMaterialByName (MaterialNames .GOLD );
212
183
213
- gold .addNewItem (Names .AXE , net .minecraft .init .Items .GOLDEN_AXE );
214
- gold .addNewItem (Names .HOE , net .minecraft .init .Items .GOLDEN_HOE );
215
- gold .addNewItem (Names .HORSE_ARMOR , net .minecraft .init .Items .GOLDEN_HORSE_ARMOR );
216
- gold .addNewItem (Names .PICKAXE , net .minecraft .init .Items .GOLDEN_PICKAXE );
217
- gold .addNewItem (Names .SHOVEL , net .minecraft .init .Items .GOLDEN_SHOVEL );
218
- gold .addNewItem (Names .SWORD , net .minecraft .init .Items .GOLDEN_SWORD );
219
- gold .addNewItem (Names .BOOTS , net .minecraft .init .Items .GOLDEN_BOOTS );
220
- gold .addNewItem (Names .CHESTPLATE , net .minecraft .init .Items .GOLDEN_CHESTPLATE );
221
- gold .addNewItem (Names .HELMET , net .minecraft .init .Items .GOLDEN_HELMET );
222
- gold .addNewItem (Names .LEGGINGS , net .minecraft .init .Items .GOLDEN_LEGGINGS );
223
- gold .addNewItem (Names .INGOT , net .minecraft .init .Items .GOLD_INGOT );
224
- gold .addNewItem (Names .NUGGET , net .minecraft .init .Items .GOLD_NUGGET );
225
-
226
184
if (Materials .hasMaterial (MaterialNames .GOLD )) {
227
185
create (Names .BLEND , gold );
228
186
create (Names .POWDER , gold );
@@ -248,21 +206,6 @@ private static void addGoldBits() {
248
206
private static void addIronBits () {
249
207
final MMDMaterial iron = Materials .getMaterialByName (MaterialNames .IRON );
250
208
251
- iron .addNewItem (Names .AXE , net .minecraft .init .Items .IRON_AXE );
252
- iron .addNewItem (Names .DOOR , net .minecraft .init .Items .IRON_DOOR );
253
- iron .addNewItem (Names .HOE , net .minecraft .init .Items .IRON_HOE );
254
- iron .addNewItem (Names .HORSE_ARMOR , net .minecraft .init .Items .IRON_HORSE_ARMOR );
255
- iron .addNewItem (Names .PICKAXE , net .minecraft .init .Items .IRON_PICKAXE );
256
- iron .addNewItem (Names .SHOVEL , net .minecraft .init .Items .IRON_SHOVEL );
257
- iron .addNewItem (Names .SWORD , net .minecraft .init .Items .IRON_SWORD );
258
- iron .addNewItem (Names .BOOTS , net .minecraft .init .Items .IRON_BOOTS );
259
- iron .addNewItem (Names .CHESTPLATE , net .minecraft .init .Items .IRON_CHESTPLATE );
260
- iron .addNewItem (Names .HELMET , net .minecraft .init .Items .IRON_HELMET );
261
- iron .addNewItem (Names .LEGGINGS , net .minecraft .init .Items .IRON_LEGGINGS );
262
- iron .addNewItem (Names .INGOT , net .minecraft .init .Items .IRON_INGOT );
263
- iron .addNewItem (Names .NUGGET , net .minecraft .init .Items .IRON_NUGGET );
264
- iron .addNewItem (Names .SHEARS , net .minecraft .init .Items .SHEARS );
265
-
266
209
if (Materials .hasMaterial (MaterialNames .IRON )) {
267
210
create (Names .BLEND , iron );
268
211
create (Names .INGOT , iron );
@@ -299,16 +242,6 @@ private static void addIronBits() {
299
242
private static void addStoneBits () {
300
243
final MMDMaterial stone = Materials .getMaterialByName (MaterialNames .STONE );
301
244
302
- stone .addNewItem (Names .AXE , net .minecraft .init .Items .STONE_AXE );
303
- stone .addNewItem (Names .HOE , net .minecraft .init .Items .STONE_HOE );
304
- stone .addNewItem (Names .PICKAXE , net .minecraft .init .Items .STONE_PICKAXE );
305
- stone .addNewItem (Names .SHOVEL , net .minecraft .init .Items .STONE_SHOVEL );
306
- stone .addNewItem (Names .SWORD , net .minecraft .init .Items .STONE_SWORD );
307
- stone .addNewBlock (Names .BLOCK , net .minecraft .init .Blocks .STONE );
308
- stone .addNewBlock (Names .SLAB , net .minecraft .init .Blocks .STONE_SLAB );
309
- stone .addNewBlock (Names .DOUBLE_SLAB , net .minecraft .init .Blocks .DOUBLE_STONE_SLAB );
310
- stone .addNewBlock (Names .STAIRS , net .minecraft .init .Blocks .STONE_STAIRS );
311
-
312
245
if (Materials .hasMaterial (MaterialNames .STONE )) {
313
246
create (Names .CRACKHAMMER , stone );
314
247
create (Names .ROD , stone );
@@ -320,21 +253,6 @@ private static void addStoneBits() {
320
253
private static void addWoodBits () {
321
254
final MMDMaterial wood = Materials .getMaterialByName (MaterialNames .WOOD );
322
255
323
- wood .addNewItem (Names .AXE , net .minecraft .init .Items .WOODEN_AXE );
324
- wood .addNewItem (Names .DOOR , net .minecraft .init .Items .OAK_DOOR );
325
- wood .addNewItem (Names .HOE , net .minecraft .init .Items .WOODEN_HOE );
326
- wood .addNewItem (Names .PICKAXE , net .minecraft .init .Items .WOODEN_PICKAXE );
327
- wood .addNewItem (Names .SHOVEL , net .minecraft .init .Items .WOODEN_SHOVEL );
328
- wood .addNewItem (Names .SWORD , net .minecraft .init .Items .WOODEN_SWORD );
329
- wood .addNewBlock (Names .DOOR , net .minecraft .init .Blocks .OAK_DOOR );
330
- wood .addNewBlock (Names .ORE , net .minecraft .init .Blocks .LOG );
331
- wood .addNewBlock (Names .TRAPDOOR , net .minecraft .init .Blocks .TRAPDOOR );
332
- wood .addNewBlock (Names .BLOCK , net .minecraft .init .Blocks .PLANKS );
333
- wood .addNewBlock (Names .SLAB , net .minecraft .init .Blocks .WOODEN_SLAB );
334
- wood .addNewBlock (Names .DOUBLE_SLAB , net .minecraft .init .Blocks .DOUBLE_WOODEN_SLAB );
335
- wood .addNewBlock (Names .STAIRS , net .minecraft .init .Blocks .OAK_STAIRS );
336
- wood .addNewItem (Names .SHEARS , net .minecraft .init .Items .SHEARS );
337
-
338
256
if (Materials .hasMaterial (MaterialNames .WOOD )) {
339
257
create (Names .CRACKHAMMER , wood );
340
258
create (Names .GEAR , wood );
0 commit comments