/
FlowerIntegration.java
142 lines (129 loc) · 8.46 KB
/
FlowerIntegration.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
package com.draco18s.ores.integration;
import com.draco18s.flowers.OreFlowersBase;
import com.draco18s.hardlib.api.HardLibAPI;
import com.draco18s.hardlib.api.blockproperties.Props;
import com.draco18s.hardlib.api.blockproperties.flowers.EnumOreFlower1;
import com.draco18s.hardlib.api.blockproperties.flowers.EnumOreFlower2;
import com.draco18s.hardlib.api.blockproperties.flowers.EnumOreFlower3;
import com.draco18s.hardlib.api.blockproperties.flowers.EnumOreFlowerDesert1;
import com.draco18s.hardlib.api.blockproperties.flowers.EnumOreFlowerDesert2;
import com.draco18s.hardlib.api.blockproperties.flowers.EnumOreFlowerDesert3;
import com.draco18s.hardlib.api.internal.BlockWrapper;
import com.draco18s.hardlib.api.internal.OreFlowerData;
import com.draco18s.hardlib.api.internal.OreFlowerDictator;
import com.draco18s.ores.OresBase;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.ItemStack;
public class FlowerIntegration {
public static void registerFlowerGen() {
IBlockState flower1State = HardLibAPI.oreFlowers.getDefaultFlower(Props.FLOWER_TYPE);
IBlockState flower2State = HardLibAPI.oreFlowers.getDefaultFlower(Props.DESERT_FLOWER_TYPE);
/* Ore Flower 1 */
BlockWrapper wrap = new BlockWrapper(OresBase.oreIron, Props.ORE_DENSITY);
OreFlowerData data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE, EnumOreFlower1._1POORJOE),
8, 11, 7);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE, EnumOreFlowerDesert1._1RED_SORREL),
8, 11, 7);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
wrap = new BlockWrapper(OresBase.oreGold, Props.ORE_DENSITY);
data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE, EnumOreFlower1._2HORSETAIL),
9, 11, 6);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
/*data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE, EnumOreFlowerDesert1._2GOLD),
9, 11, 6);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, dictator, data);*/
wrap = new BlockWrapper(OresBase.oreDiamond, Props.ORE_DENSITY);
data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE, EnumOreFlower1._3VALLOZIA),
8, 15, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.commonDictator, data);
data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE, EnumOreFlowerDesert1._3CHANDELIER_TREE).withProperty(Props.FLOWER_STALK, true),
8, 15, 5, 1);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.commonDictator, data);
HardLibAPI.oreMachines.addMillRecipe(new ItemStack(flower2State.getBlock(), 1, EnumOreFlowerDesert1._4AVELOZ.ordinal()), new ItemStack(OreFlowersBase.gooBlob));
wrap = new BlockWrapper(OresBase.oreTin, Props.ORE_DENSITY);
data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE, EnumOreFlower1._5TANSY),
8, 5, 6);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
/*data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE, EnumOreFlowerDesert1._5TIN),
8, 5, 6);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, dictator, data);*/
wrap = new BlockWrapper(OresBase.oreCopper, Props.ORE_DENSITY);
data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE, EnumOreFlower1._6HAUMAN),
4, 10, 6);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE, EnumOreFlowerDesert1._6COPPER_FLOWER),
4, 10, 6);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
wrap = new BlockWrapper(OresBase.oreLead, Props.ORE_DENSITY);
data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE, EnumOreFlower1._7LEADPLANT),
4, 7, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE, EnumOreFlowerDesert1._7SHEEPS_FESCUE),
4, 7, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
wrap = new BlockWrapper(OresBase.oreUranium, Props.ORE_DENSITY);
data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE, EnumOreFlower1._8RED_AMARANTH),
3, 7, 4);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE, EnumOreFlowerDesert1._8PRIMROSE),
3, 7, 4);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
/* Ore Flower 2 */
flower1State = HardLibAPI.oreFlowers.getDefaultFlower(Props.FLOWER_TYPE2);
flower2State = HardLibAPI.oreFlowers.getDefaultFlower(Props.DESERT_FLOWER_TYPE2);
wrap = new BlockWrapper(OresBase.oreSilver, Props.ORE_DENSITY);
data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE2, EnumOreFlower2._1MUSTARD),
11, 5, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE2, EnumOreFlowerDesert2._1RAPESEED),
11, 5, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
wrap = new BlockWrapper(OresBase.oreNickel, Props.ORE_DENSITY);
data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE2, EnumOreFlower2._2SHRUB_VIOLET),
6, 8, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE2, EnumOreFlowerDesert2._2MILKWORT),
6, 8, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
wrap = new BlockWrapper(OresBase.oreAluminum, Props.ORE_DENSITY);
data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE2, EnumOreFlower2._3AFFINE),
5, 10, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
/*data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE2, EnumOreFlowerDesert2._3ALUMINUM),
5, 10, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);*/
wrap = new BlockWrapper(OresBase.orePlatinum, Props.ORE_DENSITY);
/*data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE2, EnumOreFlower2._4PLATINUM),
8, 12, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);*/
data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE2, EnumOreFlowerDesert2._4MADWORT),
8, 12, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
wrap = new BlockWrapper(OresBase.oreZinc, Props.ORE_DENSITY);
data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE2, EnumOreFlower2._5CLOVER),
8, 10, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE2, EnumOreFlowerDesert2._5ZILLA),
8, 10, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
/* Ore Flower 3 */
flower1State = HardLibAPI.oreFlowers.getDefaultFlower(Props.FLOWER_TYPE3);
flower2State = HardLibAPI.oreFlowers.getDefaultFlower(Props.DESERT_FLOWER_TYPE3);
wrap = new BlockWrapper(OresBase.oreOsmium, Props.ORE_DENSITY);
data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE3, EnumOreFlower3._1ARROWHEAD),
5, 9, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE3, EnumOreFlowerDesert3._1PAINTBRUSH),
5, 9, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
wrap = new BlockWrapper(OresBase.oreQuartz, Props.ORE_DENSITY);
//quartz will not have any flowers
/*data = new OreFlowerData(flower1State.withProperty(Props.FLOWER_TYPE3, EnumOreFlower3._2QUARTZ),
5, 9, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);
data = new OreFlowerData(flower2State.withProperty(Props.DESERT_FLOWER_TYPE3, EnumOreFlowerDesert3._2QUARTZ),
5, 9, 5);
HardLibAPI.oreFlowers.addOreFlowerData(wrap, OreFlowerDictator.defaultDictator, data);*/
}
}