-
Notifications
You must be signed in to change notification settings - Fork 0
/
FunMod.java
633 lines (526 loc) · 33.9 KB
/
FunMod.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
package FunMod;
import java.util.HashMap;
import net.minecraftforge.common.Configuration;
import net.minecraft.server.BiomeBase;
import net.minecraft.server.Block;
import net.minecraft.server.CommandHandler;
import net.minecraft.server.CreativeModeTab;
import net.minecraft.server.Entity;
import net.minecraft.server.EnumArmorMaterial;
import net.minecraft.server.EnumCreatureType;
import net.minecraft.server.EnumToolMaterial;
import net.minecraft.server.Item;
import net.minecraft.server.ItemStack;
import net.minecraft.server.Packet23VehicleSpawn;
import net.minecraft.server.World;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.EnumHelper;
import org.bukkit.potion.PotionEffectType;
import FunMod.biomas.BiomeGenFantasy;
import FunMod.blocks.BlocCobble;
import FunMod.blocks.BlockBrickBlock;
import FunMod.blocks.BlockPlank;
import FunMod.blocks.BlockQuestionBlock;
import FunMod.blocks.BlockSofa;
import FunMod.blocks.BlockTv;
import FunMod.blocks.FantasyDirt;
import FunMod.blocks.FantasyFurnace;
import FunMod.blocks.FantasyGrass;
import FunMod.blocks.FantasyLeaf;
import FunMod.blocks.FantasyLog;
import FunMod.blocks.FantasyStone;
import FunMod.blocks.MysticalStone;
import FunMod.comandos.CommandFun;
import FunMod.dimensao.WorldProviderFantasy;
import FunMod.entidades.EntityAsh;
import FunMod.entidades.EntityBlinky;
import FunMod.entidades.EntityChaos;
import FunMod.entidades.EntityClyde;
import FunMod.entidades.EntityDarkLink;
import FunMod.entidades.EntityDoctorWilly;
import FunMod.entidades.EntityGanondorf;
import FunMod.entidades.EntityGoomba;
import FunMod.entidades.EntityHamtaro;
import FunMod.entidades.EntityHomemAranha;
import FunMod.entidades.EntityIchigo;
import FunMod.entidades.EntityInky;
import FunMod.entidades.EntityKirby;
import FunMod.entidades.EntityKoopaTroopa;
import FunMod.entidades.EntityLink;
import FunMod.entidades.EntityMage;
import FunMod.entidades.EntityMegaMan;
import FunMod.entidades.EntityNaruto;
import FunMod.entidades.EntityNess;
import FunMod.entidades.EntityPikachu;
import FunMod.entidades.EntityPinky;
import FunMod.entidades.EntitySephiroth;
import FunMod.entidades.EntitySonic;
import FunMod.entidades.EntityThrowing;
import FunMod.entidades.EntityVenom;
import FunMod.entidades.EntityWoody;
import FunMod.entidades.EntityYoshi;
import FunMod.ftp.ThreadGetData;
import FunMod.items.ItemBattery;
import FunMod.items.ItemBlade;
import FunMod.items.ItemCoalF;
import FunMod.items.ItemControle;
import FunMod.items.ItemFireFlower;
import FunMod.items.ItemLinkBow;
import FunMod.items.ItemMarioCoin;
import FunMod.items.ItemObsidianStick;
import FunMod.items.ItemPearl;
import FunMod.items.ItemStarman;
import FunMod.items.ItemSuperCog;
import FunMod.items.ItemThrowing;
import FunMod.items.ItemThunderDust;
import FunMod.items.ItemTvCima;
import FunMod.items.ItemUpCog;
import FunMod.items.Itemmesa;
import FunMod.items.Itemnes;
import FunMod.items.LinkSword;
import FunMod.items.MegaManBot;
import FunMod.items.MegaManChest;
import FunMod.items.MegaManHelm;
import FunMod.items.MegaManLeg;
import FunMod.items.SonicBoots;
import FunMod.items.ThunderBlade;
import FunMod.items.ThunderSword;
import FunMod.loader.FunModHooks;
import FunMod.loader.FunModVersion;
import FunMod.proxy.proxy;
import FunMod.struturas.WorldGeneratorFantasy;
import FunMod.tabs.CTabFun;
import FunMod.tileentidades.EntidadeFantasyFurnace;
import FunMod.tileentidades.EntidadeN64;
import FunMod.tileentidades.EntidadeSofa;
import cpw.mods.fml.common.Mod$PreInit;
import cpw.mods.fml.common.Mod$PostInit;
import cpw.mods.fml.common.Mod$Init;
import cpw.mods.fml.common.Mod$Instance;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid = "FunMod", name = "FunMod", version = "Beta 1.1.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class FunMod {
@SidedProxy(clientSide = "FunMod.cliente.proxy.clproxy", serverSide = "FunMod.proxy.proxy")
public static proxy proxy;
static EnumToolMaterial Link = EnumHelper.addToolMaterial("Link", 1, 250, 1, 7,14);
static EnumArmorMaterial MegaMan = EnumHelper.addArmorMaterial("MegaMan",30, new int[] {2, 7, 5, 3}, 15);
static EnumArmorMaterial Sonic = EnumHelper.addArmorMaterial("Sonic",25, new int[] {2, 7, 5, 3}, 15);
public static Item UpMushroom;
public static Item SuperMushroom;
public static Item FireFlower;
public static Item Starman;
public static Item LinkSword;
public static Item ThunderSword;
public static Item ThunderBlade;
public static Item MarioCoin;
public static Item MegaManHelmet;
public static Item MegaManChest;
public static Item MegaManPants;
public static Item MegaManBoots;
public static Item SonicBoots;
public static Item LinkBow;
public static Item throwItem;
public static Item PearlOfLink;
public static Item Battery;
public static Item ThunderDust;
public static Item ObsidianStick;
public static Item Blade;
public static Block QuestionBlockTop;
public static Block QuestionBlockBottom;
public static Block QuestionBlockSide;
public static Block QuestionBlock;
public static Block BrickBlock;
public static Block tb;
public static Block FantasyGrass;
public static Block FantasyStone;
public static Block FantasyDIRT;
public static Block FantasyLeaf;
public static Block FantasyLog;
public static BiomeBase FantasyBiome;
public static Block FantasyPortal;
public static Block MysticalStone;
public static Block sofa;
public static Item controle;
public static ItemThrowing itemtt;
public int bar1;
public static CreativeModeTab funmodtab;
public static Block atiba;
public static Block desatibada;
public static Item coal;
public static Item tbcima;
public static Item nes;
public static Item mesa;
public static Block plank;
public static Block cobble;
public static int ANIMATED_TEXTURE_INDEX = 1;
public static String latestbersionNumber;
public static FunModHooks hooks;
public static FunModVersion bersionNumber = new FunModVersion(1, 0, 0);
public static String recentNews;
public static int ticksPassed = 0;
public static HashMap playerStats = new HashMap();
public static boolean FlyingEnabled = true;
@Mod$Instance
public static
FunMod instance;
@Mod$PreInit
public void preInit(FMLPreInitializationEvent ebent){
System.out.println("[FunMod] Starting FunMod Pre Init Phase");
Configuration config = new Configuration(ebent.getSuggestedConfigurationFile());
config.load();
int UpMushId = config.get("Up MushRoom", "item", 500).getInt();
int SuperMushId = config.get("Super MushRoom", "item", 501).getInt();
int FireFlowerId = config.get("Fire Flower", "item", 5000).getInt();
int StarManId = config.get("Starman", "item", 5001).getInt();
int LinkSwordId = config.get("Link Sword", "item", 5002).getInt();
int ThunderSwordId = config.get("Thunder Sword", "item", 5003).getInt();
int ThunderBladeId = config.get("Thunder Blade", "item", 5015).getInt();
int MarioCoinId = config.get("Mario Coin", "item", 5004).getInt();
int MegaManHelId = config.get("MegaMan Helmet", "item", 5007).getInt();
int MegaManChesId = config.get("MegaMan ChestPlate", "item", 5008).getInt();
int MegaManPantId = config.get("MegaMan Pants", "item", 5009).getInt();
int MegaManBotId = config.get("MegaMan Boots", "item", 5010).getInt();
int SonicBootsId = config.get("Sonic Boots", "item", 5011).getInt();
int LinkBowId = config.get("Link Bow", "item", 5012).getInt();
int throwid = config.get("Throwing Item", "item", 5013).getInt();
int PearlId = config.get("Pearl Of Link", "item", 5016).getInt();
int BatId = config.get("Battery", "item", 5017).getInt();
int ThunderDustId = config.get("Thunder Dust", "item", 5018).getInt();
int ObsId = config.get("Obsidian Stick", "item", 5019).getInt();
int BladeId = config.get("Blade", "item", 5020).getInt();
int QuestBlId = config.get("Question Block", "block", 225).getInt();
int BrickId = config.get("Brick Block", "block", 226).getInt();
int tbId = config.get("Bloco Tb + N64", "block", 200).getInt();
int grassId = config.get("Fantasy Grass", "block", 210).getInt();
int stoneID = config.get("Fantasy Stone", "block", 211).getInt();
int DIRTID = config.get("Fantasy DIRT", "block", 212).getInt();
int leafId = config.get("Fantasy Leaf", "block", 218).getInt();
int logID = config.get("Fanatsy Log", "block",218).getInt();
int portalId = config.get("Fantasy Portal", "block", 216).getInt();
int myststoneID = config.get("Mystical Stone", "block", 215).getInt();
int sofaID = config.get("Sofa", "block", 255).getInt();
int plankId = config.get("Fantasy Plank", "block", 2222).getInt();
int cobbleId = config.get("Fantasy Cobblestone", "block", 2223).getInt();
config.save();
funmodtab = new CTabFun(CreativeModeTab.getNextID(), "FunMod");
LanguageRegistry.instance().addStringLocalization("itemGroup.FunMod", "FunMod CreatibeTabs");
System.out.println("[FunMod] Finished FunMod Pre Init Phase Without Any Errors");
}
@Mod$Init
public void load(FMLInitializationEvent ebent)
{
System.out.println("[FunMod] Starting FunMod Init Phase");
//registrando items e blocos
UpMushroom = new ItemUpCog(500, 4, false).a(PotionEffectType.HEAL.getId() , 30, 0, 1.0F).b("Up Mushroom");
SuperMushroom = new ItemSuperCog(501, 4, false).a(PotionEffectType.DAMAGE_RESISTANCE.getId() , 30, 0, 1.0F).b("Super Mushroom");
FireFlower = (new ItemFireFlower(5000).b("Fire Flower"));
Starman = (new ItemStarman(5001).b("Starman"));
LinkSword = (new LinkSword (5002, Link)).a(FunMod.funmodtab).b("Link Sword");
ThunderSword = (new ThunderSword (5003, Link)).a(FunMod.funmodtab).b("Thunder Sword");
ThunderBlade = (new ThunderBlade(5015).b("Thunder Blade"));
MarioCoin = (new ItemMarioCoin(5004).b("Mario Coin"));
MegaManHelmet = (new MegaManHelm(5007,MegaMan, 3, 0)).b("MegaMan Helmet");
MegaManChest = (new MegaManChest(5008,MegaMan, 3, 1)).b("MegaMan Chest");
MegaManPants = (new MegaManLeg (5009, MegaMan, 3,2)).b("MegaMan Pants");
MegaManBoots = (new MegaManBot (5010, MegaMan , 3,3)).b("MegaMan Boots");
SonicBoots = (new SonicBoots (5011, Sonic ,3,3)).b("Sonic Boots");
LinkBow = (new ItemLinkBow(5012).b("Link Bow").a(FunMod.funmodtab).b("Link Bow"));
throwItem = (new ItemThrowing(5013).b("Throw Item"));
PearlOfLink = (new ItemPearl(5016).b("Pearl Of Link"));
Battery = (new ItemBattery(5017).b("Battery"));
ThunderDust = (new ItemThunderDust(5018).b("Thunder Dust"));
ObsidianStick = (new ItemObsidianStick(5019).b("Obsidian Stick"));
Blade = (new ItemBlade(5020).b("Blade"));
QuestionBlock = new BlockQuestionBlock(225, 0).c(2F).b(200F).a(FunMod.funmodtab).b("Question Block");
BrickBlock = new BlockBrickBlock(226,0, 0).c(3F).b(200F).a(FunMod.funmodtab).b("Brick Block");
tb = new BlockTv(200,0, EntidadeN64.class).b(.5F).b("Test").c(0.5f);
sofa = new BlockSofa(255, 0, EntidadeN64.class).b(.5F).b("Sofa").c(0.5f);
FantasyGrass = (new FantasyGrass(210,0).a(Block.e).c(0.5F).b(1F).b("FantasyGrass"));
FantasyStone = (new FantasyStone(211, 0).c((float) 5.0).a(Block.g).b(1.0F).b("FantasyStone"));
FantasyDIRT = (new FantasyDirt(212,0).c(0.5F).a(Block.g).b(0.5F).b("FantasyDIRT"));
FantasyLeaf = (new FantasyLeaf(218, 0)).c(1.0F).r().a(Block.g).b(1.0F).b("FantasyLeaf");
FantasyLog = (new FantasyLog (217).b(1.0F).c(1.0F).b("forbiddenLog").a(Block.g));
FantasyBiome = (new BiomeGenFantasy(65));
MysticalStone = (new MysticalStone(215,0, 0).c(5.0F).a(Block.g).b(1000000.0F).b("MysticalStone"));
tbcima = (new ItemTvCima(10001).b("TbCima"));
nes = (new Itemnes(10005).b("Nes"));
mesa = (new Itemmesa(10004).b("mesa"));
plank = new BlockPlank(2222, 0).c(2F).b(200F).a(FunMod.funmodtab).b("Plank");
cobble = new BlocCobble(2223, 0).c(2F).b(200F).a(FunMod.funmodtab).b("Cobble");
//Item em 3d
controle = (new ItemControle(3025).b("Controle").a(FunMod.funmodtab));
desatibada = new FantasyFurnace(2831, false).b("FantasyFurnace").c(6F).a(Block.g).a(this.funmodtab);
atiba = new FantasyFurnace(2832, true).b("BrickFurnaceActibe").c(6F).a(Block.g);
coal = (new ItemCoalF(3024).b("CoaL").a(this.funmodtab));
//geracao de ore
GameRegistry.registerWorldGenerator(new WorldGeneratorFantasy());
//registrando blocos
GameRegistry.registerBlock(plank);
GameRegistry.registerBlock(cobble);
GameRegistry.registerBlock(QuestionBlock);
GameRegistry.registerBlock(BrickBlock);
GameRegistry.registerBlock(FantasyGrass);
GameRegistry.registerBlock(FantasyStone);
GameRegistry.registerBlock(FantasyDIRT);
GameRegistry.registerBlock(FantasyLeaf);
GameRegistry.registerBlock(FantasyLog);
GameRegistry.registerBlock(MysticalStone);
GameRegistry.registerBlock(tb);
GameRegistry.registerBlock(sofa);
GameRegistry.registerBlock(desatibada);
NetworkRegistry.instance().registerGuiHandler(instance, proxy);
//nomes
LanguageRegistry.addName(plank,"Fantasy Plank");
LanguageRegistry.addName(cobble,"Fantasy Cobblestone");
LanguageRegistry.addName(controle,"Control");
LanguageRegistry.addName(mesa,"Desk");
LanguageRegistry.addName(nes, "Nintendo 64");
LanguageRegistry.addName(tbcima, "A Little Tb");
LanguageRegistry.addName(coal, "Fantasy Coal");
LanguageRegistry.addName(desatibada, "Fantasy Furnace");
LanguageRegistry.addName(FantasyGrass, "Fantasy Grass");
LanguageRegistry.addName(FantasyStone, "Fantasy Stone");
LanguageRegistry.addName(FantasyDIRT, "Fantasy DIRT");
LanguageRegistry.addName(FantasyLeaf, "Fantasy Leaf");
LanguageRegistry.addName(FantasyLog, "Fantasy Log");
LanguageRegistry.addName(MysticalStone, "Mystical Stone");
LanguageRegistry.addName(UpMushroom, "Up Mushroom");
LanguageRegistry.addName(SuperMushroom, "Super Mushroom");
LanguageRegistry.addName(FireFlower, "Fire Flower");
LanguageRegistry.addName(Starman, "Starman");
LanguageRegistry.addName(LinkSword, "Link Sword");
LanguageRegistry.addName(ThunderSword, "Thunder Sword");
LanguageRegistry.addName(ThunderBlade, "Thunder Blade");
LanguageRegistry.addName(MarioCoin, "Mario Coin");
LanguageRegistry.addName(LinkBow, "Link Bow");
LanguageRegistry.addName(MegaManHelmet, "MegaMan Helmet");
LanguageRegistry.addName(MegaManChest, "MegaMan Chestplate");
LanguageRegistry.addName(MegaManPants, "MegaMan Pants");
LanguageRegistry.addName(MegaManBoots, "MegaMan Shoes");
LanguageRegistry.addName(SonicBoots, "Sonic Shoes");
LanguageRegistry.addName(PearlOfLink, "Pearl Of Link");
LanguageRegistry.addName(Battery, "Battery");
LanguageRegistry.addName(ThunderDust, "ThunderDust");
LanguageRegistry.addName(ObsidianStick, "Obsidian Stick");
LanguageRegistry.addName(Blade, "Blade");
LanguageRegistry.addName(BrickBlock,"BrickBlock");
LanguageRegistry.addName(throwItem, "Throwing Item");
LanguageRegistry.addName(QuestionBlock, "Question Block");
LanguageRegistry.addName(tb, "Tb with Nintendo 64");
LanguageRegistry.addName(sofa, "Sofa");
//recipes
GameRegistry.addRecipe(new ItemStack(controle, 1), (new Object[] {" XY","XZX","HX ", Character.valueOf('X'), ObsidianStick,Character.valueOf('Y'), Item.REDSTONE,Character.valueOf('Z'), Block.STONE_BUTTON,Character.valueOf('H'), Item.IRON_INGOT }));
GameRegistry.addSmelting(FantasyLog.id, new ItemStack(coal,1), 1f);
GameRegistry.addSmelting(cobble.id, new ItemStack(FantasyStone,1), 1f);
GameRegistry.addRecipe(new ItemStack(sofa, 1), (new Object[] {" X ","XXX","XXX", Character.valueOf('X'), Block.WOOL}));
GameRegistry.addRecipe(new ItemStack(desatibada, 1), (new Object[] {"XXX","X X","XXX", Character.valueOf('X'), FantasyStone}));
GameRegistry.addRecipe(new ItemStack (UpMushroom, 1), (new Object[] {"&&&", "&A&","&&&", Character.valueOf('&'), Block.BROWN_MUSHROOM , Character.valueOf('A'), Starman}));
GameRegistry.addRecipe(new ItemStack (SuperMushroom, 1), (new Object[] {"&&&", "&A&","&&&", Character.valueOf('&'), Block.RED_MUSHROOM, Character.valueOf('A'), Starman}));
GameRegistry.addRecipe(new ItemStack (Starman, 1), (new Object[] {" & ", "&&&"," & ", Character.valueOf('&'), Item.GOLD_INGOT }));
GameRegistry.addRecipe(new ItemStack (LinkSword, 1), (new Object[] {" & ", " & "," A ", Character.valueOf('&'), PearlOfLink , Character.valueOf('A'), Item.STICK }));
GameRegistry.addRecipe(new ItemStack (ThunderSword, 1), (new Object[] {" ", " & "," A ", Character.valueOf('&'), ThunderBlade , Character.valueOf('A'), ObsidianStick }));
GameRegistry.addRecipe(new ItemStack (ThunderBlade, 1), (new Object[] {"&&&", "&A&","&&&", Character.valueOf('&'), ThunderDust , Character.valueOf('A'), Blade }));
GameRegistry.addRecipe(new ItemStack (MegaManHelmet, 1), (new Object[] {"A&A", "O O"," ", Character.valueOf('A'), Item.IRON_INGOT , Character.valueOf('&'), Battery , Character.valueOf('O'), Item.DIAMOND}));
GameRegistry.addRecipe(new ItemStack (MegaManChest, 1), (new Object[] {"A A", "OPO","LOL", Character.valueOf('A'), Item.REDSTONE , Character.valueOf('P'), Battery , Character.valueOf('O'), Item.IRON_INGOT , Character.valueOf('L'), Item.DIAMOND}));
GameRegistry.addRecipe(new ItemStack (MegaManPants, 1), (new Object[] {"IAI", "A A","O O" , Character.valueOf('A'), Item.IRON_INGOT , Character.valueOf('O'), Item.REDSTONE , Character.valueOf('I'), Item.DIAMOND}));
GameRegistry.addRecipe(new ItemStack (MegaManBoots, 1), (new Object[] {" ", "A A","O O" , Character.valueOf('A'), Item.IRON_INGOT , Character.valueOf('O'), Item.REDSTONE}));
GameRegistry.addRecipe(new ItemStack (LinkBow, 1), (new Object[] {" A&", "B &"," A&", Character.valueOf('&'), Item.STRING , Character.valueOf('A'), Item.STICK , Character.valueOf('B'), PearlOfLink }));
GameRegistry.addRecipe(new ItemStack (ObsidianStick, 2), (new Object[] {" " , " & ", " & ", Character.valueOf('&'), Block.OBSIDIAN }));
GameRegistry.addRecipe(new ItemStack (Blade, 1), (new Object[] {" " , " & ", " & ", Character.valueOf('&'), Item.IRON_INGOT }));
GameRegistry.addRecipe(new ItemStack (nes, 1), (new Object[] {" " , "&X&", "&Y&", Character.valueOf('&'), Item.IRON_INGOT,Character.valueOf('X'), Item.DIAMOND, Character.valueOf('Y'), Item.REDSTONE }));
GameRegistry.addRecipe(new ItemStack (tbcima, 1), (new Object[] {"&&&" , "&X&", "&&&", Character.valueOf('&'), Item.IRON_INGOT,'X', Block.THIN_GLASS}));
GameRegistry.addShapelessRecipe(new ItemStack(plank), new Object[] {FantasyLog});
GameRegistry.addShapelessRecipe(new ItemStack(Block.WOOD, 4), new Object[] {this.plank});
GameRegistry.addRecipe(new ItemStack (mesa, 1), (new Object[] {"&&&" , "X X", "&&&", Character.valueOf('&'), Block.WOOD_STEP,'X', Item.STICK}));
GameRegistry.addRecipe(new ItemStack (tb, 1), (new Object[] {" & " , " X ", " Z ", Character.valueOf('&'), tbcima,'X', nes, 'Z', mesa}));
//entidades
GameRegistry.registerTileEntity(EntidadeN64.class, "Tb");
GameRegistry.registerTileEntity(EntidadeSofa.class, "Sofa");
EntityRegistry.registerGlobalEntityID(EntityThrowing.class, "Throwing", 126 );
EntityRegistry.registerModEntity(EntityThrowing.class, "Throwing" ,126, this, 64, 1, true);
EntityRegistry.registerGlobalEntityID(EntityLink.class,"Link",100,8510747, 2551400);
EntityRegistry.addSpawn(EntityLink.class, 100, 2, 3, EnumCreatureType.CREATURE, new BiomeBase[] {BiomeBase.FOREST , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityNess.class,"Ness",101,25500, 30144255);
EntityRegistry.addSpawn(EntityNess.class, 101, 1, 4, EnumCreatureType.CREATURE, new BiomeBase[] {FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityMegaMan.class,"Mega Man",102,135206250, 245245245);
EntityRegistry.addSpawn(EntityMegaMan.class, 102, 1, 2, EnumCreatureType.CREATURE, new BiomeBase[] {FunMod.FantasyBiome });
EntityRegistry.registerGlobalEntityID(EntityWoody.class,"Woody",103,812712861, 245245245);
EntityRegistry.addSpawn(EntityWoody.class, 103, 1, 3, EnumCreatureType.CREATURE, new BiomeBase[] {FunMod.FantasyBiome });
EntityRegistry.registerGlobalEntityID(EntityIchigo.class,"Ichigo",104,23344499, 212823623);
EntityRegistry.addSpawn(EntityIchigo.class, 104, 3, 5, EnumCreatureType.CREATURE, new BiomeBase[] {FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityClyde.class,"Clyde",105,46467576, 212823623);
EntityRegistry.addSpawn(EntityClyde.class, 105, 3, 7, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityGoomba.class,"Goomba",106,18271293, 212823623);
EntityRegistry.addSpawn(EntityGoomba.class, 106, 6, 8, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityNaruto.class,"Naruto",107,252520, 141415);
EntityRegistry.addSpawn(EntityNaruto.class, 107, 2, 4, EnumCreatureType.CREATURE, new BiomeBase[] {FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityBlinky.class,"Blinky",108,12872382, 141415);
EntityRegistry.addSpawn(EntityBlinky.class, 108, 8, 12, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityInky.class,"Inky",109,12872382, 18191918);
EntityRegistry.addSpawn(EntityInky.class, 109, 3, 5, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityPinky.class,"Pinky",110,1281272, 18191918);
EntityRegistry.addSpawn(EntityPinky.class, 110, 8, 12, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityAsh.class,"Ash",111,19291201, 1821928);
EntityRegistry.addSpawn(EntityAsh.class, 111, 2, 3, EnumCreatureType.CREATURE, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityKirby.class,"Kirby",112,80807090, 8512712);
EntityRegistry.addSpawn(EntityKirby.class, 112, 4, 8, EnumCreatureType.CREATURE, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityHomemAranha.class,"Spider Man",113, 60807090, 152152);
EntityRegistry.addSpawn(EntityHomemAranha.class, 113, 1, 4, EnumCreatureType.CREATURE, new BiomeBase[] {BiomeBase.FOREST , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityVenom.class,"benom",114, 9090706, 152152);
EntityRegistry.addSpawn(EntityVenom.class, 114, 3, 5, EnumCreatureType.MONSTER, new BiomeBase[] {BiomeBase.FOREST , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityPikachu.class,"Pikachu",115, 80807060, 1515151 );
EntityRegistry.addSpawn(EntityPikachu.class, 115, 1, 3, EnumCreatureType.CREATURE, new BiomeBase[] {BiomeBase.FOREST , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityChaos.class,"Chaos",116, 3636363, 1515151 );
EntityRegistry.addSpawn(EntityChaos.class, 116, 5, 5, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityMage.class,"Mage",117, 3636363, 66666666 );
EntityRegistry.addSpawn(EntityMage.class, 117, 1, 2, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome });
EntityRegistry.registerGlobalEntityID(EntityDarkLink.class,"Dark Link",119, 77777777, 88888888);
EntityRegistry.addSpawn(EntityDarkLink.class, 119, 2, 4, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome });
EntityRegistry.registerGlobalEntityID(EntityGanondorf.class,"Ganondorf",70, 10277912, 16161616);
EntityRegistry.addSpawn(EntityGanondorf.class, 120, 1, 3, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntitySephiroth.class,"Sephiroth",121, 10277912, 67676767);
EntityRegistry.addSpawn(EntitySephiroth.class, 121, 1, 3, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityKoopaTroopa.class,"Koopa Troopa",122, 89898090, 67676767);
EntityRegistry.addSpawn(EntityKoopaTroopa.class, 122, 6, 7, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntitySonic.class,"Sonic",123, 89898090, 49484047);
EntityRegistry.addSpawn(EntitySonic.class, 123, 2, 5, EnumCreatureType.CREATURE, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityYoshi.class,"Yoshi",124, 13455332, 4234324);
EntityRegistry.addSpawn(EntityYoshi.class, 124, 2, 5, EnumCreatureType.CREATURE, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome});
EntityRegistry.registerGlobalEntityID(EntityDoctorWilly.class,"Doctor Willy",125, 129128918, 88888888);
EntityRegistry.addSpawn(EntityDoctorWilly.class, 125, 1, 3, EnumCreatureType.MONSTER, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome });
EntityRegistry.registerGlobalEntityID(EntityHamtaro.class,"Hamtaro",72, 129128918, 81726162);
EntityRegistry.addSpawn(EntityDoctorWilly.class, 125, 1, 3, EnumCreatureType.CREATURE, new BiomeBase[] {FunMod.FantasyBiome , FunMod.FantasyBiome , FunMod.FantasyBiome });
//sistema de proxy
proxy.registerRenderThings();
proxy.renderMobs();
proxy.renderBlocoComModelo();
proxy.renderItemComModelos(bar1);
proxy.loadTickHandler();
proxy.rendercontrole();
GameRegistry.registerTileEntity(EntidadeFantasyFurnace.class, "EntidadeFantasyFurnace");
//nome dos mobs
LanguageRegistry.instance().addStringLocalization("entity.Link.name","pt_BR","Link");
LanguageRegistry.instance().addStringLocalization("entity.Link.name","Link");
LanguageRegistry.instance().addStringLocalization("entity.Ness.name","pt_BR","Ness");
LanguageRegistry.instance().addStringLocalization("entity.Ness.name","Ness");
LanguageRegistry.instance().addStringLocalization("entity.Mega Man.name","pt_BR","Mega Man");
LanguageRegistry.instance().addStringLocalization("entity.Mega Man.name","Mega Man");
LanguageRegistry.instance().addStringLocalization("entity.Woody.name","pt_BR","Woody");
LanguageRegistry.instance().addStringLocalization("entity.Woody.name","Woody");
LanguageRegistry.instance().addStringLocalization("entity.Ichigo.name","pt_BR","Ichigo");
LanguageRegistry.instance().addStringLocalization("entity.Ichigo.name","Ichigo");
LanguageRegistry.instance().addStringLocalization("entity.Clyde.name","pt_BR","Clyde");
LanguageRegistry.instance().addStringLocalization("entity.Clyde.name","Clyde");
LanguageRegistry.instance().addStringLocalization("entity.Goomba.name","pt_BR","Goomba");
LanguageRegistry.instance().addStringLocalization("entity.Goomba.name","Goomba");
LanguageRegistry.instance().addStringLocalization("entity.Naruto.name","pt_BR","Naruto");
LanguageRegistry.instance().addStringLocalization("entity.Naruto.name","Naruto");
LanguageRegistry.instance().addStringLocalization("entity.Blinky.name","pt_BR","Blinky");
LanguageRegistry.instance().addStringLocalization("entity.Blinky.name","Blinky");
LanguageRegistry.instance().addStringLocalization("entity.Inky.name","pt_BR","Inky");
LanguageRegistry.instance().addStringLocalization("entity.Inky.name","Inky");
LanguageRegistry.instance().addStringLocalization("entity.Pinky.name","pt_BR","Pinky");
LanguageRegistry.instance().addStringLocalization("entity.Pinky.name","Pinky");
LanguageRegistry.instance().addStringLocalization("entity.Ash.name","pt_BR","Ash");
LanguageRegistry.instance().addStringLocalization("entity.Ash.name","Ash");
LanguageRegistry.instance().addStringLocalization("entity.Kirby.name","pt_BR","Kirby");
LanguageRegistry.instance().addStringLocalization("entity.Kirby.name","Kirby");
LanguageRegistry.instance().addStringLocalization("entity.Spider Man.name","pt_BR","Spider Man");
LanguageRegistry.instance().addStringLocalization("entity.Spider Man.name","Spider Man");
LanguageRegistry.instance().addStringLocalization("entity.benom.name","pt_BR","benom");
LanguageRegistry.instance().addStringLocalization("entity.benom.name","benom");
LanguageRegistry.instance().addStringLocalization("entity.Pikachu.name","pt_BR","Pikachu");
LanguageRegistry.instance().addStringLocalization("entity.Pikachu.name","Pikachu");
LanguageRegistry.instance().addStringLocalization("entity.Chaos.name","pt_BR","Chaos");
LanguageRegistry.instance().addStringLocalization("entity.Chaos.name","Chaos");
LanguageRegistry.instance().addStringLocalization("entity.Mage.name","pt_BR","Mage");
LanguageRegistry.instance().addStringLocalization("entity.Mage.name","Mage");
LanguageRegistry.instance().addStringLocalization("entity.Dark Link.name","pt_BR","Dark Link");
LanguageRegistry.instance().addStringLocalization("entity.Dark Link.name","Dark Link");
LanguageRegistry.instance().addStringLocalization("entity.Ganondorf.name","pt_BR","Ganondorf");
LanguageRegistry.instance().addStringLocalization("entity.Ganondorf.name","Ganondorf");
LanguageRegistry.instance().addStringLocalization("entity.Sephiroth.name","pt_BR","Sephiroth");
LanguageRegistry.instance().addStringLocalization("entity.Sephiroth.name","Sephiroth");
LanguageRegistry.instance().addStringLocalization("entity.Koopa Troopa.name","pt_BR","Koopa Troopa");
LanguageRegistry.instance().addStringLocalization("entity.Koopa Troopa.name","Koopa Troopa");
LanguageRegistry.instance().addStringLocalization("entity.Sonic.name","pt_BR","Sonic");
LanguageRegistry.instance().addStringLocalization("entity.Sonic.name","Sonic");
LanguageRegistry.instance().addStringLocalization("entity.Yoshi.name","pt_BR","Yoshi");
LanguageRegistry.instance().addStringLocalization("entity.Yoshi.name","Yoshi");
LanguageRegistry.instance().addStringLocalization("entity.Doctor Willy.name","pt_BR","Doctor Willy");
LanguageRegistry.instance().addStringLocalization("entity.Doctor Willy.name","Doctor Willy");
LanguageRegistry.instance().addStringLocalization("entity.Hamtaro.name","pt_BR","Hamtaro");
LanguageRegistry.instance().addStringLocalization("entity.Hamtaro.name","Hamtaro");
//Dimensao
DimensionManager.registerProviderType(10, WorldProviderFantasy.class, false);
DimensionManager.registerDimension(10, 10);
System.out.println("[FunMod] Finished FunMod Init Phase Without Any Errors");
new ThreadGetData();
}
@Mod$PostInit
public void postInit(FMLPostInitializationEvent ebent)
{
System.out.println("[FunMod] PostInit Phase started.");
System.out.println("[FunMod] PostInit Phase completed sucefull.");
}
/**
public void serverStarting(FMLServerStartingEvent event) {
CommandHandler commandManager = (CommandHandler)
commandManager.registerCommand(new CommandFun(null));
}
public static float getMobeStrafing(EntityPlayer bar0)
{
return bar0.worldObj.isRemote ? bar0.mobeStrafing : 0.0F;
}
public static float getMobeForward(EntityPlayer bar0)
{
return bar0.worldObj.isRemote ? bar0.mobeForward : 0.0F;
}
**/
// sistema relacionado a packets (Nao precisa implementar IPacketHandler pois ja existe um packet pra entidades)
public Entity spawnEntity(int bar1, World bar2, double bar3, double bar5, double bar7)
{
if(bar1 == 497)
{
return new EntityThrowing( bar2, bar3, bar5, bar7 );
}
else
{
return null;
}
}
public Packet23VehicleSpawn getSpawnPacket(Entity bar1, int bar2)
{
if(bar1 instanceof EntityThrowing)
{
return new Packet23VehicleSpawn( bar1, 497 );
}
else
{
return null;
}
}
/**
public static boolean isSpacebarPressed(EntityPlayer bar0)
{
return bar0.worldObj.isRemote ? Minecraft.getMinecraft().gameSettings.keyBindJump.pressed : (!playerStats.containsKey(bar0) ? false : ((float[])playerStats.get(bar0))[5] == 1.0F);
}
public static boolean isShiftbarPressed(EntityPlayer bar0)
{
return bar0.worldObj.isRemote ? Minecraft.getMinecraft().gameSettings.keyBindSneak.pressed : (!playerStats.containsKey(bar0) ? false : ((float[])playerStats.get(bar0))[6] == 1.0F);
}
public static boolean isJumping(EntityPlayer rider) {
// TODO Auto-generated method stub
**/
}