前提Mod: Minecraft1.7.10 IC2Exp
Révision | d9223281c024559a785b81f2ca854864db1099ce (tree) |
---|---|
l'heure | 2015-08-06 21:40:45 |
Auteur | MirrgieRiana |
Commiter | MirrgieRiana |
InitializerCrops: 一部のCropを×形描画に指定
@@ -86,6 +86,7 @@ | ||
86 | 86 | setEmittedLight(c, array(5), 0); |
87 | 87 | addCropComponentSarracenia(c, array(4, 5), COLLISION, 2, |
88 | 88 | entityLiving -> entityLiving.getCreatureAttribute() == EnumCreatureAttribute.ARTHROPOD); |
89 | + ModMirageCrops6.proxy.setCrossing(c); | |
89 | 90 | |
90 | 91 | c = r("sarraceniaLightning", 6, 5, s(4, 0, 5, 2, 1), a(a1, a2, "Purple", "Lightning")); |
91 | 92 | setGain(c, cropTile -> AliItemStack.cropSarraceniaLightning.copy()); |
@@ -94,6 +95,7 @@ | ||
94 | 95 | setEmittedLight(c, array(5), 12); |
95 | 96 | addCropComponentSarracenia(c, array(4, 5), COLLISION, 5, |
96 | 97 | entityLiving -> entityLiving.getCreatureAttribute() == EnumCreatureAttribute.ARTHROPOD); |
98 | + ModMirageCrops6.proxy.setCrossing(c); | |
97 | 99 | |
98 | 100 | c = r("sarraceniaNagae", 10, 5, s(0, 4, 7, 5, 0), a(a1, a2, "Fish", "Food", "Edible", "Lightning", "Cloth")); |
99 | 101 | setGain(c, cropTile -> { |
@@ -107,6 +109,7 @@ | ||
107 | 109 | setTextureRespect(c, max(4), AliCrop.sarracenia); |
108 | 110 | setEmittedLight(c, array(5), 8); |
109 | 111 | setTickerNagae(c, array(4)); |
112 | + ModMirageCrops6.proxy.setCrossing(c); | |
110 | 113 | |
111 | 114 | c = r("sarraceniaManeater", 8, 5, s(0, 0, 6, 3, 1), a(a1, a2, "Pink", "Red", "Blood", "Undead")); |
112 | 115 | setGain(c, cropTile -> AliItemStack.cropSarraceniaManeater.copy()); |
@@ -116,6 +119,7 @@ | ||
116 | 119 | addCropComponentSarracenia(c, array(4, 5), COLLISION, 3, entityLiving -> entityLiving instanceof EntityZombie); |
117 | 120 | addCropComponentSarracenia(c, array(4, 5), COLLISION, 3, entityLiving -> entityLiving instanceof EntityVillager); |
118 | 121 | addCropComponentSarracenia(c, array(4, 5), COLLISION, 1, entityLiving -> entityLiving instanceof EntityPlayerMP); |
122 | + ModMirageCrops6.proxy.setCrossing(c); | |
119 | 123 | |
120 | 124 | c = r("sarraceniaDevil", 14, 5, s(0, 0, 8, 3, 0), a(a1, a2, "Red", "Redstone", "Undead", "Blood")); |
121 | 125 | setGain(c, cropTile -> AliItemStack.cropSarraceniaDevil.copy()); |
@@ -124,6 +128,7 @@ | ||
124 | 128 | setEmittedLight(c, array(5), 4); |
125 | 129 | addCropComponentSarracenia(c, array(4, 5), COLLISION, 3, |
126 | 130 | entityLiving -> entityLiving.getCreatureAttribute() == EnumCreatureAttribute.UNDEAD); |
131 | + ModMirageCrops6.proxy.setCrossing(c); | |
127 | 132 | |
128 | 133 | } |
129 | 134 |
@@ -168,6 +173,7 @@ | ||
168 | 173 | setGain(c, cropTile -> AliItemStack.cropReedCircuit.copy()); |
169 | 174 | setGain(c, range(2, 3), cropTile -> HItemStack.copy(AliItemStack.cropReedWire, cropTile.getSize() - 1)); |
170 | 175 | setSizeAfterHarvest(c, array(4), cropTile -> rBw(cropTile, 1, 3)); |
176 | + ModMirageCrops6.proxy.setCrossing(c); | |
171 | 177 | |
172 | 178 | c = r("berriesMatter", 9, 4, s(1002, 0, 0, 6, 0), a(a1, "Matter", "Purple")); |
173 | 179 | setGain(c, cropTile -> w() |
@@ -187,6 +193,7 @@ | ||
187 | 193 | .entry(300, () -> new ItemStack(Items.glowstone_dust)) |
188 | 194 | .entry(200, () -> new ItemStack(Items.dye, 1, 4)) |
189 | 195 | .get(cropTile.getWorld().rand).get()); |
196 | + ModMirageCrops6.proxy.setCrossing(c); | |
190 | 197 | |
191 | 198 | c = r("wartGlass", 8, 3, s(1000, 0, 0, 0, 0), a(a1, "Glass", "Silica")); |
192 | 199 | setGain(c, cropTile -> w() |
@@ -226,12 +233,14 @@ | ||
226 | 233 | setGain(c, cropTile -> AliItemStack.cropCactus.copy()); |
227 | 234 | addCropComponentCactus(c, array(4), COLLISION, 1.0f); |
228 | 235 | registerBaseSeed(c, () -> HItemStack.copy(AliItemStack.cropCactus, 1)); |
236 | + ModMirageCrops6.proxy.setCrossing(c); | |
229 | 237 | |
230 | 238 | c = r("cactusObsidian", 7, 4, s(3, 0, 6, 3, 0), a(a1, a2, "Purple", "Black", "Obsidian", "Glass", "Fire")); |
231 | 239 | setGain(c, cropTile -> AliItemStack.cropCactusObsidian.copy()); |
232 | 240 | setTextureRespect(c, max(3), AliCrop.cactus); |
233 | 241 | addCropComponentCactus(c, array(4), COLLISION, 2.0f); |
234 | 242 | registerBaseSeed(c, () -> HItemStack.copy(AliItemStack.cropCactusObsidian, 1)); |
243 | + ModMirageCrops6.proxy.setCrossing(c); | |
235 | 244 | |
236 | 245 | c = r("cactusSnow", 6, 5, s(2, 0, 5, 2, 0), a(a1, a2, "White", "Ice", "Snow")); |
237 | 246 | setGain(c, cropTile -> w() |
@@ -246,6 +255,8 @@ | ||
246 | 255 | addCropComponentCactus(c, array(4, 5), COLLISION | CLICK, 1.0f); |
247 | 256 | addCropComponentSlow(c, array(5), COLLISION); |
248 | 257 | registerBaseSeed(c, () -> HItemStack.copy(AliItemStack.cropCactusSnow, 1)); |
258 | + ModMirageCrops6.proxy.setCrossing(c); | |
259 | + | |
249 | 260 | } |
250 | 261 | |
251 | 262 | private static void registerWeeds() |
@@ -260,10 +271,12 @@ | ||
260 | 271 | c = r("fern", 1, 4, s(0, 0, 0, 1, 4), a(a1, a2, a5, "Weed")); |
261 | 272 | setGain(c, cropTile -> new ItemStack(Blocks.tallgrass, 1, 2)); |
262 | 273 | registerBaseSeed(c, () -> new ItemStack(Blocks.tallgrass, 1, 2)); |
274 | + ModMirageCrops6.proxy.setCrossing(c); | |
263 | 275 | |
264 | 276 | c = r("fernHoney", 5, 5, s(0, 3, 0, 1, 2), a(a1, a2, a5, "Bee", "Honey", "Edible")); |
265 | 277 | setGain(c, cropTile -> null); |
266 | 278 | setTextureRespect(c, max(4), AliCrop.fern); |
279 | + ModMirageCrops6.proxy.setCrossing(c); | |
267 | 280 | } |
268 | 281 | |
269 | 282 | { |
@@ -273,6 +286,7 @@ | ||
273 | 286 | c = r("vine", 1, 4, s(0, 0, 1, 0, 4), a(a3, a4, a5, "Weed")); |
274 | 287 | setGain(c, cropTile -> new ItemStack(Blocks.vine)); |
275 | 288 | registerBaseSeed(c, () -> new ItemStack(Blocks.vine)); |
289 | + ModMirageCrops6.proxy.setCrossing(c); | |
276 | 290 | |
277 | 291 | c = r("vineApatite", 6, 4, s(3, 0, 0, 2, 1), a(a3, a4, a5, "Blue", "Apatite", "Crystal", "Phosphorus")); |
278 | 292 | setGain(c, cropTile -> w() |
@@ -282,9 +296,11 @@ | ||
282 | 296 | setGrowthLightRegion(c, array(3), 15, 15); |
283 | 297 | setGrowthDurationRatio(c, array(3), 5); |
284 | 298 | setTextureRespect(c, max(3), AliCrop.vine); |
299 | + ModMirageCrops6.proxy.setCrossing(c); | |
285 | 300 | |
286 | 301 | c = r("vineFluoroberries", 9, 4, s(6, 0, 4, 3, 1), a(a3, a4, "Yellow", "Fluorine", "Berry")); |
287 | 302 | setGain(c, cropTile -> HItemStack.copy(AliItemStack.cropVineFluoroberries, rBw(cropTile, 1, 10))); |
303 | + ModMirageCrops6.proxy.setCrossing(c); | |
288 | 304 | } |
289 | 305 | } |
290 | 306 |
@@ -313,14 +329,18 @@ | ||
313 | 329 | setGain(c, cropTile -> null); |
314 | 330 | |
315 | 331 | c = r("coffeeJava", 6, 4, s(1, 4, 0, 1, 0), a("Coffee", "Leaves", "Java")); |
332 | + ModMirageCrops6.proxy.setCrossing(c); | |
316 | 333 | setGain(c, cropTile -> null); |
317 | 334 | |
318 | 335 | c = r("mandrake", 5, 4, s(5, 3, 5, 2, 3), a("Mandrake")); |
319 | 336 | setGain(c, cropTile -> AliItemStack.cropMandrake.copy()); |
337 | + ModMirageCrops6.proxy.setCrossing(c); | |
320 | 338 | |
321 | 339 | c = r("dreamflower", 7, 4, s(0, 0, 0, 3, 0), a("Dream", "Flower", "Mirage")); |
322 | 340 | setGain(c, cropTile -> null); |
323 | 341 | setEmittedLight(c, array(4), 8); |
342 | + ModMirageCrops6.proxy.setCrossing(c); | |
343 | + | |
324 | 344 | } |
325 | 345 | |
326 | 346 | private static class Weighter<T> |