summaryrefslogtreecommitdiff
path: root/TF2 Crates/src/main/java/tf2crates/crate/RandomLoot.java
blob: ee7ef5a929e2dfd2506b8b92b797c644dda3d550 (plain)
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
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
package tf2crates.crate;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentData;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemStack;
import tf2crates.ServerProxyTC;
import tf2crates.item.ItemPaint;
import tlhpoeCore.util.MathUtil;

public abstract class RandomLoot {
	private static int	nextID	= 0;
	private int			ID;

	private List<Item>	possibleLoot;
	protected boolean	enchanted;
	public int			min		= 1, max = 1;

	protected RandomLoot(List<Item> possibleLoot, boolean enchanted) {
		this.possibleLoot = possibleLoot;
		this.enchanted = enchanted;

		ID = nextID++;
	}

	public ItemStack getLoot() {
		ItemStack loot = new ItemStack(
				possibleLoot.get(MathUtil.nextInt(possibleLoot.size())),
				MathUtil.getRandomIntegerBetween(min, max));

		if (enchanted) {
			EnchantmentHelper.addRandomEnchantment(MathUtil.getRandom(),
					loot, MathUtil.getRandomIntegerBetween(25, 30));
		}

		return loot;
	}

	public abstract String getDisplayName();

	public int getID() {
		return ID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ID;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (obj == null) {
			return false;
		}

		if (getClass() != obj.getClass()) {
			return false;
		}

		RandomLoot other = (RandomLoot) obj;

		if (ID != other.ID) {
			return false;
		}

		return true;
	}

	public static class SpecificItem extends RandomLoot {
		private ItemStack	itemStack;
		private Item		item;
		private int			meta	= -1;

		public SpecificItem(Item item, int min, int max) {
			super(null, false);

			this.itemStack = new ItemStack(item, 1);
			this.item = item;
			this.min = min;
			this.max = max;
		}

		public SpecificItem(Item item, int min, int max, int meta) {
			this(item, min, max);

			this.meta = meta;
		}

		@Override
		public String getDisplayName() {
			return min != max ? (min + " to " + max + " "
					+ itemStack.getDisplayName() + (min > 1 ? "s" : ""))
					: ((min > 1 ? (min + " ") : "A ")
							+ itemStack.getDisplayName()
							+ (min > 1 ? "s" : ""));
		}

		@Override
		public ItemStack getLoot() {
			return new ItemStack(item,
					MathUtil.getRandomIntegerBetween(min, max), meta);
		}
	}

	public static class Pickaxe extends RandomLoot {
		public Pickaxe(boolean enchanted) {
			super(PICKAXES, enchanted);
		}

		@Override
		public String getDisplayName() {
			return enchanted ? "An Enchanted Random Pickaxe"
					: "A Random Pickaxe";
		}
	}

	public static class Shovel extends RandomLoot {
		public Shovel(boolean enchanted) {
			super(SHOVELS, enchanted);
		}

		@Override
		public String getDisplayName() {
			return enchanted ? "An Enchanted Random Shovel"
					: "A Random Shovel";
		}
	}

	public static class Axe extends RandomLoot {
		public Axe(boolean enchanted) {
			super(AXES, enchanted);
		}

		@Override
		public String getDisplayName() {
			return enchanted ? "An Enchanted Random Axe" : "A Random Axe";
		}
	}

	public static class Hoe extends RandomLoot {
		public Hoe(boolean enchanted) {
			super(HOES, enchanted);
		}

		@Override
		public String getDisplayName() {
			return enchanted ? "An Enchanted Random Hoe" : "A Random Hoe";
		}
	}

	public static class ToolHead extends RandomLoot {
		public ToolHead() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack head = TOOL_HEADS
					.get(MathUtil.getRandomIntegerBetween(0,
							RandomLoot.TOOL_HEADS.size()))
					.copy();

			return head;
		}

		@Override
		public String getDisplayName() {
			return "A Random Tool Head";
		}

	}

	public static class Sword extends RandomLoot {
		public Sword(boolean enchanted) {
			super(SWORDS, enchanted);
		}

		@Override
		public String getDisplayName() {
			return enchanted ? "An Enchanted Random Sword"
					: "A Random Sword";
		}
	}

	public static class Bow extends RandomLoot {
		public Bow(boolean enchanted) {
			super(BOWS, enchanted);

			this.min = 1;
			this.max = 1;
		}

		@Override
		public String getDisplayName() {
			return enchanted ? "An Enchanted Random Bow" : "A Random Bow";
		}
	}

	public static class Seed extends RandomLoot {
		public Seed() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack seedType = SEEDS
					.get(MathUtil.getRandomIntegerBetween(0, SEEDS.size()))
					.copy();

			seedType.stackSize = MathUtil.getRandomIntegerBetween(16, 32);

			return seedType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 32 Seeds of a Random Type";
		}
	}

	public static class Saplings extends RandomLoot {
		public Saplings() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack saplingType = SAPLINGS.get(
					MathUtil.getRandomIntegerBetween(0, SAPLINGS.size()))
					.copy();

			saplingType.stackSize = MathUtil.getRandomIntegerBetween(16,
					32);

			return saplingType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 32 Saplings of a Random Type";
		}
	}

	public static class Arrow extends RandomLoot {
		public Arrow() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack arrowType = ARROWS.get(
					MathUtil.getRandomIntegerBetween(0, ARROWS.size()))
					.copy();

			arrowType.stackSize = MathUtil.getRandomIntegerBetween(16, 32);

			return arrowType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 32 Arrows of a Random Type";
		}
	}

	public static class Helmet extends RandomLoot {
		public Helmet(boolean enchanted) {
			super(HELMETS, enchanted);
		}

		@Override
		public String getDisplayName() {
			return enchanted ? "An Enchanted Random Helmet"
					: "A Random Helmet";
		}
	}

	public static class Chestplate extends RandomLoot {
		public Chestplate(boolean enchanted) {
			super(CHESTPLATES, enchanted);
		}

		@Override
		public String getDisplayName() {
			return enchanted ? "An Enchanted Random Chestplate"
					: "A Random Chestplate";
		}
	}

	public static class Legging extends RandomLoot {
		public Legging(boolean enchanted) {
			super(LEGGINGS, enchanted);
		}

		@Override
		public String getDisplayName() {
			return enchanted ? "Enchanted Random Leggings"
					: "Random Leggings";
		}
	}

	public static class Boot extends RandomLoot {
		public Boot(boolean enchanted) {
			super(BOOTS, enchanted);
		}

		@Override
		public String getDisplayName() {
			return enchanted ? "Enchanted Random Boots" : "Random Boots";
		}
	}

	public static class Food extends RandomLoot {
		public Food() {
			super(FOOD, false);

			this.min = 16;
			this.max = 64;
		}

		@Override
		public String getDisplayName() {
			return "16 to 64 of a Random Food Item";
		}
	}

	public static class Potion extends RandomLoot {
		public Potion() {
			super(null, false);
		}

		@Override
		public String getDisplayName() {
			return "4 to 16 of a Random Potion";
		}

		@Override
		public ItemStack getLoot() {
			ItemStack loot = POTIONS.get(MathUtil.nextInt(POTIONS.size()))
					.copy();

			loot.stackSize = MathUtil.getRandomIntegerBetween(4, 16);

			return loot;
		}
	}

	public static class SplashPotion extends RandomLoot {
		public SplashPotion() {
			super(null, false);
		}

		@Override
		public String getDisplayName() {
			return "4 to 16 of a Random Splash Potion";
		}

		@Override
		public ItemStack getLoot() {
			ItemStack loot = SPLASH_POTIONS
					.get(MathUtil.nextInt(SPLASH_POTIONS.size())).copy();

			loot.stackSize = MathUtil.getRandomIntegerBetween(4, 16);

			return loot;
		}
	}

	public static class CertainMaterialTool extends RandomLoot {
		private ToolMaterial material;

		public CertainMaterialTool(ToolMaterial material,
				boolean enchanted) {
			super(MATERIAL_TOOLS.get(material), enchanted);

			this.material = material;
		}

		@Override
		public String getDisplayName() {
			return enchanted
					? "Enchanted Random " + material.name() + " Tool"
					: "Random " + material.name() + " Tool";
		}
	}

	public static class CertainMaterialArmor extends RandomLoot {
		private ArmorMaterial material;

		public CertainMaterialArmor(ArmorMaterial material,
				boolean enchanted) {
			super(MATERIAL_ARMOR.get(material), enchanted);

			this.material = material;
		}

		@Override
		public String getDisplayName() {
			return enchanted
					? "Enchanted Random " + material.name() + " Armor"
					: "Random " + material.name() + " Armor";
		}
	}

	public static class Paint extends RandomLoot {
		public Paint() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			int dmg = MathUtil.nextInt(ItemPaint.TYPES.length);

			if (MathUtil.getChance(1, 50)) {
				dmg = 11;
			}

			return new ItemStack(ServerProxyTC.paint, 1, dmg);
		}

		@Override
		public String getDisplayName() {
			return "A Random Paint";
		}
	}

	public static class EnchantedBook extends RandomLoot {
		public EnchantedBook() {
			super(null, true);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack loot = new ItemStack(Items.enchanted_book,
					MathUtil.getRandomIntegerBetween(2, 8));
			Enchantment enchantment = Enchantment.enchantmentsBookList[MathUtil
					.nextInt(Enchantment.enchantmentsBookList.length)];

			Items.enchanted_book.addEnchantment(loot,
					new EnchantmentData(enchantment,
							MathUtil.getRandomIntegerBetween(
									enchantment.getMinLevel(),
									enchantment.getMaxLevel())));

			return loot;
		}

		@Override
		public String getDisplayName() {
			return "2 to 8 Random Enchanted Books";
		}
	}

	public static class FishingRod extends RandomLoot {
		public FishingRod() {
			super(null, true);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack loot = new ItemStack(Items.fishing_rod, 1);

			EnchantmentHelper.addRandomEnchantment(MathUtil.getRandom(),
					loot, 30);

			return loot;
		}

		@Override
		public String getDisplayName() {
			return "A Randomly Enchanted Fishing Rod";
		}
	}

	public static class Slab extends RandomLoot {
		public Slab() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack slabType = SLABS
					.get(MathUtil.getRandomIntegerBetween(0, SLABS.size()))
					.copy();

			slabType.stackSize = MathUtil.getRandomIntegerBetween(16, 64);

			return slabType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 64 Slabs of a Random Type";
		}
	}

	public static class Stair extends RandomLoot {
		public Stair() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack stairType = STAIRS.get(
					MathUtil.getRandomIntegerBetween(0, STAIRS.size()))
					.copy();

			stairType.stackSize = MathUtil.getRandomIntegerBetween(16, 64);

			return stairType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 64 Stairs of a Random Type";
		}
	}

	public static class Fence extends RandomLoot {
		public Fence() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack fenceType = FENCES.get(
					MathUtil.getRandomIntegerBetween(0, FENCES.size()))
					.copy();

			fenceType.stackSize = MathUtil.getRandomIntegerBetween(16, 64);

			return fenceType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 64 Fences of a Random Type";
		}
	}

	public static class Planks extends RandomLoot {
		public Planks() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack plankType = PLANKS.get(
					MathUtil.getRandomIntegerBetween(0, PLANKS.size()))
					.copy();

			plankType.stackSize = MathUtil.getRandomIntegerBetween(16, 64);

			return plankType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 64 Planks of a Random Type";
		}
	}

	public static class Logs extends RandomLoot {
		public Logs() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack logType = LOGS
					.get(MathUtil.getRandomIntegerBetween(0, LOGS.size()))
					.copy();

			logType.stackSize = MathUtil.getRandomIntegerBetween(16, 32);

			return logType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 32 Logs of a Random Type";
		}
	}

	public static class Crop extends RandomLoot {
		public Crop() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack cropType = CROPS
					.get(MathUtil.getRandomIntegerBetween(0, CROPS.size()))
					.copy();

			cropType.stackSize = MathUtil.getRandomIntegerBetween(16, 32);

			return cropType;
		}

		@Override
		public String getDisplayName() {
			return "8 to 16 Crops of a Random Type";
		}
	}

	public static class Dye extends RandomLoot {
		public Dye() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack dyeType = DYES
					.get(MathUtil.getRandomIntegerBetween(0, DYES.size()))
					.copy();

			dyeType.stackSize = MathUtil.getRandomIntegerBetween(16, 32);

			return dyeType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 32 Logs of a Random Type";
		}
	}

	public static class Record extends RandomLoot {
		public Record() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack dyeType = RECORDS.get(
					MathUtil.getRandomIntegerBetween(0, RECORDS.size()))
					.copy();

			dyeType.stackSize = 1;

			return dyeType;
		}

		@Override
		public String getDisplayName() {
			return "A Random Record";
		}
	}

	public static class Glass extends RandomLoot {
		public Glass() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack glassType = GLASS.get(MathUtil
					.getRandomIntegerBetween(0, RandomLoot.GLASS.size()))
					.copy();

			glassType.stackSize = MathUtil.getRandomIntegerBetween(32, 64);

			return glassType;
		}

		@Override
		public String getDisplayName() {
			return "32 to 64 Glass of a Random Type";
		}
	}

	public static class Wool extends RandomLoot {
		public Wool() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack woolType = WOOL.get(MathUtil
					.getRandomIntegerBetween(0, RandomLoot.WOOL.size()))
					.copy();

			woolType.stackSize = MathUtil.getRandomIntegerBetween(8, 32);

			return woolType;
		}

		@Override
		public String getDisplayName() {
			return "8 to 32 Wool of a Random Type";
		}
	}

	public static class Stone extends RandomLoot {
		public Stone() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack stoneType = STONES.get(MathUtil
					.getRandomIntegerBetween(0, RandomLoot.STONES.size()))
					.copy();

			stoneType.stackSize = MathUtil.getRandomIntegerBetween(16, 48);

			return stoneType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 48 Stone of a Random Type";
		}
	}

	public static class Dust extends RandomLoot {
		public Dust() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack dustType = RandomLoot.DUSTS.get(MathUtil
					.getRandomIntegerBetween(0, RandomLoot.DUSTS.size()))
					.copy();

			dustType.stackSize = MathUtil.getRandomIntegerBetween(8, 16);

			return dustType;
		}

		@Override
		public String getDisplayName() {
			return "8 to 16 Dust of a Random Type";
		}
	}

	public static class Block extends RandomLoot {
		public Block() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack blockType = RandomLoot.DUSTS.get(MathUtil
					.getRandomIntegerBetween(0, RandomLoot.DUSTS.size()))
					.copy();

			blockType.stackSize = MathUtil.getRandomIntegerBetween(4, 8);

			return blockType;
		}

		@Override
		public String getDisplayName() {
			return "4 to 8 Random Blocks";
		}
	}

	public static class Crate extends RandomLoot {
		public Crate() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack crateType = RandomLoot.CRATES.get(MathUtil
					.getRandomIntegerBetween(0, RandomLoot.CRATES.size()))
					.copy();

			crateType.stackSize = MathUtil.getRandomIntegerBetween(4, 8);

			return crateType;
		}

		@Override
		public String getDisplayName() {
			return "4 to 8 Storage Crates of a Random Type";
		}
	}

	public static class Gem extends RandomLoot {
		public Gem() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack gemType = RandomLoot.GEMS.get(MathUtil
					.getRandomIntegerBetween(0, RandomLoot.GEMS.size()))
					.copy();

			gemType.stackSize = MathUtil.getRandomIntegerBetween(8, 16);

			return gemType;
		}

		@Override
		public String getDisplayName() {
			return "8 to 16 Gems of a Random Type";
		}
	}

	public static class Ingot extends RandomLoot {
		public Ingot() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack ingotType = RandomLoot.INGOTS.get(MathUtil
					.getRandomIntegerBetween(0, RandomLoot.INGOTS.size()))
					.copy();

			ingotType.stackSize = MathUtil.getRandomIntegerBetween(16, 32);

			return ingotType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 32 Ingots of a Random Type";
		}
	}

	public static class Ore extends RandomLoot {
		public Ore() {
			super(null, false);
		}

		@Override
		public ItemStack getLoot() {
			ItemStack oreType = RandomLoot.ORES.get(MathUtil
					.getRandomIntegerBetween(0, RandomLoot.ORES.size()))
					.copy();

			oreType.stackSize = MathUtil.getRandomIntegerBetween(16, 32);

			return oreType;
		}

		@Override
		public String getDisplayName() {
			return "16 to 32 Ores of a Random Type";
		}
	}

	public static class Belt extends RandomLoot {
		public Belt() {
			super(RandomLoot.BELTS, false);
		}

		@Override
		public String getDisplayName() {
			return "A Random Belt";
		}

	}

	public static class Amulet extends RandomLoot {
		public Amulet() {
			super(RandomLoot.AMULETS, false);
		}

		@Override
		public String getDisplayName() {
			return "A Random Amulet";
		}

	}

	public static class Ring extends RandomLoot {
		public Ring() {
			super(RandomLoot.RINGS, false);
		}

		@Override
		public String getDisplayName() {
			return "A Random Ring";
		}
	}

	/*
	 * Tool Loot
	 */
	public static final List<
			Item>											PICKAXES		= new ArrayList<
					Item>();
	public static final List<
			Item>											SHOVELS			= new ArrayList<
					Item>();
	public static final List<
			Item>											AXES			= new ArrayList<
					Item>();
	public static final List<
			Item>											HOES			= new ArrayList<
					Item>();
	public static final List<
			ItemStack>										TOOL_HEADS		= new ArrayList<
					ItemStack>();

	/*
	 * Weapon Loot
	 */
	public static final List<
			Item>											SWORDS			= new ArrayList<
					Item>();
	public static final List<
			Item>											BOWS			= new ArrayList<
					Item>();
	public static final List<
			ItemStack>										ARROWS			= new ArrayList<
					ItemStack>();

	/*
	 * Tool Material Loot
	 */
	public static final Map<ToolMaterial,
			ArrayList<
					Item>>									MATERIAL_TOOLS	= new HashMap<
							ToolMaterial, ArrayList<Item>>();

	/*
	 * Armor Loot
	 */
	public static final List<
			Item>											HELMETS			= new ArrayList<
					Item>();
	public static final List<
			Item>											CHESTPLATES		= new ArrayList<
					Item>();
	public static final List<
			Item>											LEGGINGS		= new ArrayList<
					Item>();
	public static final List<
			Item>											BOOTS			= new ArrayList<
					Item>();

	/*
	 * Armor Material Loot
	 */
	public static final Map<ArmorMaterial,
			ArrayList<
					Item>>									MATERIAL_ARMOR	= new HashMap<
							ArmorMaterial, ArrayList<Item>>();

	/*
	 * Food Loot
	 */
	public static final List<
			Item>											FOOD			= new ArrayList<
					Item>();
	public static final List<
			ItemStack>										CROPS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										SEEDS			= new ArrayList<
					ItemStack>();

	/*
	 * Potion Loot
	 */
	public static final List<
			ItemStack>										POTIONS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										SPLASH_POTIONS	= new ArrayList<
					ItemStack>();

	/*
	 * Resource Loot
	 */
	public static final List<
			ItemStack>										DUSTS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										BLOCKS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										CRATES			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										GEMS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										INGOTS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										ORES			= new ArrayList<
					ItemStack>();

	/*
	 * Decorative Loot
	 */
	public static final List<
			ItemStack>										GLASS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										WOOL			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										DYES			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										FENCES			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										LOGS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										PLANKS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										RECORDS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										SLABS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										STAIRS			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										STONES			= new ArrayList<
					ItemStack>();
	public static final List<
			ItemStack>										SAPLINGS		= new ArrayList<
					ItemStack>();

	/*
	 * List of weapons
	 */
	public static final List<
			Item>											WEAPONS			= new ArrayList<
					Item>();

	/*
	 * List of baubles
	 */
	public static final List<
			Item>											BELTS			= new ArrayList<
					Item>();
	public static final List<
			Item>											AMULETS			= new ArrayList<
					Item>();
	public static final List<
			Item>											RINGS			= new ArrayList<
					Item>();
}