blob: 7ba5bc326a496dbf08c7872214c1b6d5c7f64723 (
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
|
package gtPlusPlus.xmod.forestry.bees.registry;
import static gregtech.api.enums.Mods.Forestry;
import java.util.HashMap;
import gregtech.GTMod;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.material.Material;
import gtPlusPlus.xmod.forestry.bees.handler.GTPPCombType;
import gtPlusPlus.xmod.forestry.bees.handler.GTPPDropType;
import gtPlusPlus.xmod.forestry.bees.handler.GTPPPollenType;
import gtPlusPlus.xmod.forestry.bees.handler.GTPPPropolisType;
import gtPlusPlus.xmod.forestry.bees.items.output.GTPPComb;
import gtPlusPlus.xmod.forestry.bees.items.output.GTPPDrop;
import gtPlusPlus.xmod.forestry.bees.items.output.GTPPPollen;
import gtPlusPlus.xmod.forestry.bees.items.output.GTPPPropolis;
public class GTPP_Bees {
public static final byte FORESTRY = 0;
public static final byte EXTRABEES = 1;
public static final byte GENDUSTRY = 2;
public static final byte MAGICBEES = 3;
public static final byte GREGTECH = 4;
public static GTPPPropolis propolis;
public static GTPPPollen pollen;
public static GTPPDrop drop;
public static GTPPComb combs;
public static HashMap<String, Material> sMaterialMappings = new HashMap<>();
public static HashMap<Integer, GTPPPropolisType> sPropolisMappings = new HashMap<>();
public static HashMap<Integer, GTPPPollenType> sPollenMappings = new HashMap<>();
public static HashMap<Integer, GTPPDropType> sDropMappings = new HashMap<>();
public static HashMap<Integer, GTPPCombType> sCombMappings = new HashMap<>();
public GTPP_Bees() {
if (Forestry.isModLoaded() && GTMod.gregtechproxy.mGTBees) {
Logger.BEES("Creating required items.");
propolis = new GTPPPropolis();
pollen = new GTPPPollen();
drop = new GTPPDrop();
combs = new GTPPComb();
Logger.BEES("Loading types.");
// call values() to force initialization of enum entries
GTPP_BeeDefinition.values();
GTPPCombType.values();
GTPPDropType.values();
GTPPPollenType.values();
GTPPPropolisType.values();
Logger.BEES("Adding recipes.");
GTPPDrop.initDropsRecipes();
GTPPPropolis.initPropolisRecipes();
GTPPComb.initCombsRecipes();
Logger.BEES("Initialising bees.");
GTPP_BeeDefinition.initBees();
Logger.BEES("Done!");
}
}
}
|