Skip to content

Instantly share code, notes, and snippets.

@marchermans
Created November 30, 2015 19:47
Show Gist options
  • Save marchermans/cd39780b786207acf0b6 to your computer and use it in GitHub Desktop.
Save marchermans/cd39780b786207acf0b6 to your computer and use it in GitHub Desktop.
Hook error
PS D:\Development\Minecraft\SmithsCore> ./gradlew setupDecompWorkspace
#################################################
ForgeGradle 2.1-SNAPSHOT-8971088
https://github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP unknown
http://modcoderpack.com
by: Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
#################################################
Found AccessTransformer: SmithsCore_at.cfg
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev UP-TO-DATE
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings
:genSrgs SKIPPED
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:deobfMcSRG SKIPPED
:decompileMc SKIPPED
:fixMcSources
Patching failed: minecraft\net\minecraft\world\gen\layer\GenLayer.java
Hunk 1 failed! Cannot find hunk target
GenLayer genlayer6 = GenLayerZoom.func_75915_a(1000L, lvt_9_1_, 2);
GenLayerBiomeEdge genlayerbiomeedge = new GenLayerBiomeEdge(1000L, genlayer6);
GenLayer lvt_10_1_ = GenLayerZoom.func_75915_a(1000L, genlayerriverinit, 2);
- GenLayerHills genlayerhills = new GenLayerHills(1000L, genlayerbiomeedge, lvt_10_1_);
+ GenLayer genlayerhills = new GenLayerHills(1000L, genlayerbiomeedge, lvt_10_1_);
GenLayer genlayer5 = GenLayerZoom.func_75915_a(1000L, genlayerriverinit, 2);
genlayer5 = GenLayerZoom.func_75915_a(1000L, genlayer5, j);
GenLayerRiver genlayerriver = new GenLayerRiver(1L, genlayer5);
File state
package net.minecraft.world.gen.layer;
import java.util.concurrent.Callable;
import net.minecraft.crash.CrashReport;
import net.minecraft.crash.CrashReportCategory;
import net.minecraft.util.ReportedException;
import net.minecraft.world.WorldType;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.ChunkProviderSettings;
import net.minecraft.world.gen.layer.GenLayerAddIsland;
import net.minecraft.world.gen.layer.GenLayerAddMushroomIsland;
import net.minecraft.world.gen.layer.GenLayerAddSnow;
import net.minecraft.world.gen.layer.GenLayerBiome;
import net.minecraft.world.gen.layer.GenLayerBiomeEdge;
import net.minecraft.world.gen.layer.GenLayerDeepOcean;
import net.minecraft.world.gen.layer.GenLayerEdge;
import net.minecraft.world.gen.layer.GenLayerFuzzyZoom;
import net.minecraft.world.gen.layer.GenLayerHills;
import net.minecraft.world.gen.layer.GenLayerIsland;
import net.minecraft.world.gen.layer.GenLayerRareBiome;
import net.minecraft.world.gen.layer.GenLayerRemoveTooMuchOcean;
import net.minecraft.world.gen.layer.GenLayerRiver;
import net.minecraft.world.gen.layer.GenLayerRiverInit;
import net.minecraft.world.gen.layer.GenLayerRiverMix;
import net.minecraft.world.gen.layer.GenLayerShore;
import net.minecraft.world.gen.layer.GenLayerSmooth;
import net.minecraft.world.gen.layer.GenLayerVoronoiZoom;
import net.minecraft.world.gen.layer.GenLayerZoom;
public abstract class GenLayer {
private long field_75907_b;
protected GenLayer field_75909_a;
private long field_75908_c;
protected long field_75906_d;
public static GenLayer[] func_180781_a(long p_180781_0_, WorldType p_180781_2_, String p_180781_3_) {
GenLayer genlayer = new GenLayerIsland(1L);
genlayer = new GenLayerFuzzyZoom(2000L, genlayer);
GenLayerAddIsland genlayeraddisland = new GenLayerAddIsland(1L, genlayer);
GenLayerZoom genlayerzoom = new GenLayerZoom(2001L, genlayeraddisland);
GenLayerAddIsland genlayeraddisland1 = new GenLayerAddIsland(2L, genlayerzoom);
genlayeraddisland1 = new GenLayerAddIsland(50L, genlayeraddisland1);
genlayeraddisland1 = new GenLayerAddIsland(70L, genlayeraddisland1);
GenLayerRemoveTooMuchOcean genlayerremovetoomuchocean = new GenLayerRemoveTooMuchOcean(2L, genlayeraddisland1);
GenLayerAddSnow genlayeraddsnow = new GenLayerAddSnow(2L, genlayerremovetoomuchocean);
GenLayerAddIsland genlayeraddisland2 = new GenLayerAddIsland(3L, genlayeraddsnow);
GenLayerEdge genlayeredge = new GenLayerEdge(2L, genlayeraddisland2, GenLayerEdge.Mode.COOL_WARM);
genlayeredge = new GenLayerEdge(2L, genlayeredge, GenLayerEdge.Mode.HEAT_ICE);
genlayeredge = new GenLayerEdge(3L, genlayeredge, GenLayerEdge.Mode.SPECIAL);
GenLayerZoom genlayerzoom1 = new GenLayerZoom(2002L, genlayeredge);
genlayerzoom1 = new GenLayerZoom(2003L, genlayerzoom1);
GenLayerAddIsland genlayeraddisland3 = new GenLayerAddIsland(4L, genlayerzoom1);
GenLayerAddMushroomIsland genlayeraddmushroomisland = new GenLayerAddMushroomIsland(5L, genlayeraddisland3);
GenLayerDeepOcean genlayerdeepocean = new GenLayerDeepOcean(4L, genlayeraddmushroomisland);
GenLayer genlayer4 = GenLayerZoom.func_75915_a(1000L, genlayerdeepocean, 0);
ChunkProviderSettings chunkprovidersettings = null;
int i = 4;
int j = i;
if(p_180781_2_ == WorldType.field_180271_f && p_180781_3_.length() > 0) {
chunkprovidersettings = ChunkProviderSettings.Factory.func_177865_a(p_180781_3_).func_177864_b();
i = chunkprovidersettings.field_177780_G;
j = chunkprovidersettings.field_177788_H;
}
if(p_180781_2_ == WorldType.field_77135_d) {
i = 6;
}
GenLayer ? = GenLayerZoom.func_75915_a(1000L, genlayer4, 0);
GenLayerRiverInit genlayerriverinit = new GenLayerRiverInit(100L, ?);
GenLayerBiome ? = new GenLayerBiome(200L, genlayer4, p_180781_2_, p_180781_3_);
GenLayer genlayer6 = GenLayerZoom.func_75915_a(1000L, ?, 2);
GenLayerBiomeEdge genlayerbiomeedge = new GenLayerBiomeEdge(1000L, genlayer6);
GenLayer ? = GenLayerZoom.func_75915_a(1000L, genlayerriverinit, 2);
GenLayerHills genlayerhills = new GenLayerHills(1000L, genlayerbiomeedge, ?);
GenLayer genlayer5 = GenLayerZoom.func_75915_a(1000L, genlayerriverinit, 2);
genlayer5 = GenLayerZoom.func_75915_a(1000L, genlayer5, j);
GenLayerRiver genlayerriver = new GenLayerRiver(1L, genlayer5);
GenLayerSmooth genlayersmooth = new GenLayerSmooth(1000L, genlayerriver);
genlayerhills = new GenLayerRareBiome(1001L, genlayerhills);
for(int k = 0; k < i; ++k) {
genlayerhills = new GenLayerZoom((long)(1000 + k), genlayerhills);
if(k == 0) {
genlayerhills = new GenLayerAddIsland(3L, genlayerhills);
}
if(k == 1 || i == 1) {
genlayerhills = new GenLayerShore(1000L, genlayerhills);
}
}
GenLayerSmooth genlayersmooth1 = new GenLayerSmooth(1000L, genlayerhills);
GenLayerRiverMix genlayerrivermix = new GenLayerRiverMix(100L, genlayersmooth1, genlayersmooth);
GenLayer genlayer3 = new GenLayerVoronoiZoom(10L, genlayerrivermix);
genlayerrivermix.func_75905_a(p_180781_0_);
genlayer3.func_75905_a(p_180781_0_);
return new GenLayer[]{genlayerrivermix, genlayer3, genlayerrivermix};
}
public GenLayer(long p_i2125_1_) {
this.field_75906_d = p_i2125_1_;
this.field_75906_d *= this.field_75906_d * 6364136223846793005L + 1442695040888963407L;
this.field_75906_d += p_i2125_1_;
this.field_75906_d *= this.field_75906_d * 6364136223846793005L + 1442695040888963407L;
this.field_75906_d += p_i2125_1_;
this.field_75906_d *= this.field_75906_d * 6364136223846793005L + 1442695040888963407L;
this.field_75906_d += p_i2125_1_;
}
public void func_75905_a(long p_75905_1_) {
this.field_75907_b = p_75905_1_;
if(this.field_75909_a != null) {
this.field_75909_a.func_75905_a(p_75905_1_);
}
this.field_75907_b *= this.field_75907_b * 6364136223846793005L + 1442695040888963407L;
this.field_75907_b += this.field_75906_d;
this.field_75907_b *= this.field_75907_b * 6364136223846793005L + 1442695040888963407L;
this.field_75907_b += this.field_75906_d;
this.field_75907_b *= this.field_75907_b * 6364136223846793005L + 1442695040888963407L;
this.field_75907_b += this.field_75906_d;
}
public void func_75903_a(long p_75903_1_, long p_75903_3_) {
this.field_75908_c = this.field_75907_b;
this.field_75908_c *= this.field_75908_c * 6364136223846793005L + 1442695040888963407L;
this.field_75908_c += p_75903_1_;
this.field_75908_c *= this.field_75908_c * 6364136223846793005L + 1442695040888963407L;
this.field_75908_c += p_75903_3_;
this.field_75908_c *= this.field_75908_c * 6364136223846793005L + 1442695040888963407L;
this.field_75908_c += p_75903_1_;
this.field_75908_c *= this.field_75908_c * 6364136223846793005L + 1442695040888963407L;
this.field_75908_c += p_75903_3_;
}
protected int func_75902_a(int p_75902_1_) {
int i = (int)((this.field_75908_c >> 24) % (long)p_75902_1_);
if(i < 0) {
i += p_75902_1_;
}
this.field_75908_c *= this.field_75908_c * 6364136223846793005L + 1442695040888963407L;
this.field_75908_c += this.field_75907_b;
return i;
}
public abstract int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_);
protected static boolean func_151616_a(int p_151616_0_, int p_151616_1_) {
if(p_151616_0_ == p_151616_1_) {
return true;
} else if(p_151616_0_ != BiomeGenBase.field_150607_aa.field_76756_M && p_151616_0_ != BiomeGenBase.field_150608_ab.field_76756_M) {
final BiomeGenBase biomegenbase = BiomeGenBase.func_150568_d(p_151616_0_);
final BiomeGenBase biomegenbase1 = BiomeGenBase.func_150568_d(p_151616_1_);
try {
return biomegenbase != null && biomegenbase1 != null?biomegenbase.func_150569_a(biomegenbase1):false;
} catch (Throwable throwable) {
CrashReport crashreport = CrashReport.func_85055_a(throwable, "Comparing biomes");
CrashReportCategory crashreportcategory = crashreport.func_85058_a("Biomes being compared");
crashreportcategory.func_71507_a("Biome A ID", Integer.valueOf(p_151616_0_));
crashreportcategory.func_71507_a("Biome B ID", Integer.valueOf(p_151616_1_));
crashreportcategory.func_71500_a("Biome A", new Callable<String>() {
public String call() throws Exception {
return String.valueOf((Object)biomegenbase);
}
});
crashreportcategory.func_71500_a("Biome B", new Callable<String>() {
public String call() throws Exception {
return String.valueOf((Object)biomegenbase1);
}
});
throw new ReportedException(crashreport);
}
} else {
return p_151616_1_ == BiomeGenBase.field_150607_aa.field_76756_M || p_151616_1_ == BiomeGenBase.field_150608_ab.field_76756_M;
}
}
protected static boolean func_151618_b(int p_151618_0_) {
return p_151618_0_ == BiomeGenBase.field_76771_b.field_76756_M || p_151618_0_ == BiomeGenBase.field_150575_M.field_76756_M || p_151618_0_ == BiomeGenBase.field_76776_l.field_76756_M;
}
protected int func_151619_a(int... p_151619_1_) {
return p_151619_1_[this.func_75902_a(p_151619_1_.length)];
}
protected int func_151617_b(int p_151617_1_, int p_151617_2_, int p_151617_3_, int p_151617_4_) {
return p_151617_2_ == p_151617_3_ && p_151617_3_ == p_151617_4_?p_151617_2_:(p_151617_1_ == p_151617_2_ && p_151617_1_ == p_151617_3_?p_151617_1_:(p_151617_1_ == p_151617_2_ && p_151617_1_ == p_151617_4_?p_151617_1_:(p_151617_1_ == p_151617_3_ && p_151617_1_ == p_151617_4_?p_151617_1_:(p_151617_1_ == p_151617_2_ && p_151617_3_ != p_151617_4_?p_151617_1_:(p_151617_1_ == p_151617_3_ && p_151617_2_ != p_151617_4_?p_151617_1_:(p_151617_1_ == p_151617_4_ && p_151617_2_ != p_151617_3_?p_151617_1_:(p_151617_2_ == p_151617_3_ && p_151617_1_ != p_151617_4_?p_151617_2_:(p_151617_2_ == p_151617_4_ && p_151617_1_ != p_151617_3_?p_151617_2_:(p_151617_3_ == p_151617_4_ && p_151617_1_ != p_151617_2_?p_151617_3_:this.func_151619_a(new int[]{p_151617_1_, p_151617_2_, p_151617_3_, p_151617_4_}))))))))));
}
}
Patching failed: minecraft\net\minecraft\world\gen\structure\StructureMineshaftPieces.java
Hunk 2 failed! Cannot find hunk target
j = 1;
}
- int k;
- for(lvt_5_1_ = 0; k < this.field_74887_e.func_78883_b(); k = k + 4) {
+ for(int k = 0; k < this.field_74887_e.func_78883_b(); k = k + 4) {
k = k + p_74861_3_.nextInt(this.field_74887_e.func_78883_b());
if(k + 3 > this.field_74887_e.func_78883_b()) {
break;
File state
package net.minecraft.world.gen.structure;
import com.google.common.collect.Lists;
import java.util.List;
import java.util.Random;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.item.EntityMinecartChest;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.EnumDyeColor;
import net.minecraft.item.Item;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityMobSpawner;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.WeightedRandomChestContent;
import net.minecraft.world.World;
import net.minecraft.world.gen.structure.MapGenStructureIO;
import net.minecraft.world.gen.structure.StructureBoundingBox;
import net.minecraft.world.gen.structure.StructureComponent;
public class StructureMineshaftPieces {
private static final List<WeightedRandomChestContent> field_175893_a = Lists.newArrayList(new WeightedRandomChestContent[]{new WeightedRandomChestContent(Items.field_151042_j, 0, 1, 5, 10), new WeightedRandomChestContent(Items.field_151043_k, 0, 1, 3, 5), new WeightedRandomChestContent(Items.field_151137_ax, 0, 4, 9, 5), new WeightedRandomChestContent(Items.field_151100_aR, EnumDyeColor.BLUE.func_176767_b(), 4, 9, 5), new WeightedRandomChestContent(Items.field_151045_i, 0, 1, 2, 3), new WeightedRandomChestContent(Items.field_151044_h, 0, 3, 8, 10), new WeightedRandomChestContent(Items.field_151025_P, 0, 1, 3, 15), new WeightedRandomChestContent(Items.field_151035_b, 0, 1, 1, 1), new WeightedRandomChestContent(Item.func_150898_a(Blocks.field_150448_aq), 0, 4, 8, 1), new WeightedRandomChestContent(Items.field_151081_bc, 0, 2, 4, 10), new WeightedRandomChestContent(Items.field_151080_bb, 0, 2, 4, 10), new WeightedRandomChestContent(Items.field_151141_av, 0, 1, 1, 3), new WeightedRandomChestContent(Items.field_151138_bX, 0, 1, 1, 1)});
public static void func_143048_a() {
MapGenStructureIO.func_143031_a(StructureMineshaftPieces.Corridor.class, "MSCorridor");
MapGenStructureIO.func_143031_a(StructureMineshaftPieces.Cross.class, "MSCrossing");
MapGenStructureIO.func_143031_a(StructureMineshaftPieces.Room.class, "MSRoom");
MapGenStructureIO.func_143031_a(StructureMineshaftPieces.Stairs.class, "MSStairs");
}
private static StructureComponent func_175892_a(List<StructureComponent> p_175892_0_, Random p_175892_1_, int p_175892_2_, int p_175892_3_, int p_175892_4_, EnumFacing p_175892_5_, int p_175892_6_) {
int i = p_175892_1_.nextInt(100);
if(i >= 80) {
StructureBoundingBox structureboundingbox = StructureMineshaftPieces.Cross.func_175813_a(p_175892_0_, p_175892_1_, p_175892_2_, p_175892_3_, p_175892_4_, p_175892_5_);
if(structureboundingbox != null) {
return new StructureMineshaftPieces.Cross(p_175892_6_, p_175892_1_, structureboundingbox, p_175892_5_);
}
} else if(i >= 70) {
StructureBoundingBox structureboundingbox1 = StructureMineshaftPieces.Stairs.func_175812_a(p_175892_0_, p_175892_1_, p_175892_2_, p_175892_3_, p_175892_4_, p_175892_5_);
if(structureboundingbox1 != null) {
return new StructureMineshaftPieces.Stairs(p_175892_6_, p_175892_1_, structureboundingbox1, p_175892_5_);
}
} else {
StructureBoundingBox structureboundingbox2 = StructureMineshaftPieces.Corridor.func_175814_a(p_175892_0_, p_175892_1_, p_175892_2_, p_175892_3_, p_175892_4_, p_175892_5_);
if(structureboundingbox2 != null) {
return new StructureMineshaftPieces.Corridor(p_175892_6_, p_175892_1_, structureboundingbox2, p_175892_5_);
}
}
return null;
}
private static StructureComponent func_175890_b(StructureComponent p_175890_0_, List<StructureComponent> p_175890_1_, Random p_175890_2_, int p_175890_3_, int p_175890_4_, int p_175890_5_, EnumFacing p_175890_6_, int p_175890_7_) {
if(p_175890_7_ > 8) {
return null;
} else if(Math.abs(p_175890_3_ - p_175890_0_.func_74874_b().field_78897_a) <= 80 && Math.abs(p_175890_5_ - p_175890_0_.func_74874_b().field_78896_c) <= 80) {
StructureComponent structurecomponent = func_175892_a(p_175890_1_, p_175890_2_, p_175890_3_, p_175890_4_, p_175890_5_, p_175890_6_, p_175890_7_ + 1);
if(structurecomponent != null) {
p_175890_1_.add(structurecomponent);
structurecomponent.func_74861_a(p_175890_0_, p_175890_1_, p_175890_2_);
}
return structurecomponent;
} else {
return null;
}
}
public static class Corridor extends StructureComponent {
private boolean field_74958_a;
private boolean field_74956_b;
private boolean field_74957_c;
private int field_74955_d;
public Corridor() {
}
protected void func_143012_a(NBTTagCompound p_143012_1_) {
p_143012_1_.func_74757_a("hr", this.field_74958_a);
p_143012_1_.func_74757_a("sc", this.field_74956_b);
p_143012_1_.func_74757_a("hps", this.field_74957_c);
p_143012_1_.func_74768_a("Num", this.field_74955_d);
}
protected void func_143011_b(NBTTagCompound p_143011_1_) {
this.field_74958_a = p_143011_1_.func_74767_n("hr");
this.field_74956_b = p_143011_1_.func_74767_n("sc");
this.field_74957_c = p_143011_1_.func_74767_n("hps");
this.field_74955_d = p_143011_1_.func_74762_e("Num");
}
public Corridor(int p_i45625_1_, Random p_i45625_2_, StructureBoundingBox p_i45625_3_, EnumFacing p_i45625_4_) {
super(p_i45625_1_);
this.field_74885_f = p_i45625_4_;
this.field_74887_e = p_i45625_3_;
this.field_74958_a = p_i45625_2_.nextInt(3) == 0;
this.field_74956_b = !this.field_74958_a && p_i45625_2_.nextInt(23) == 0;
if(this.field_74885_f != EnumFacing.NORTH && this.field_74885_f != EnumFacing.SOUTH) {
this.field_74955_d = p_i45625_3_.func_78883_b() / 5;
} else {
this.field_74955_d = p_i45625_3_.func_78880_d() / 5;
}
}
public static StructureBoundingBox func_175814_a(List<StructureComponent> p_175814_0_, Random p_175814_1_, int p_175814_2_, int p_175814_3_, int p_175814_4_, EnumFacing p_175814_5_) {
StructureBoundingBox structureboundingbox = new StructureBoundingBox(p_175814_2_, p_175814_3_, p_175814_4_, p_175814_2_, p_175814_3_ + 2, p_175814_4_);
int i;
for(i = p_175814_1_.nextInt(3) + 2; i > 0; --i) {
int j = i * 5;
switch(p_175814_5_) {
case NORTH:
structureboundingbox.field_78893_d = p_175814_2_ + 2;
structureboundingbox.field_78896_c = p_175814_4_ - (j - 1);
break;
case SOUTH:
structureboundingbox.field_78893_d = p_175814_2_ + 2;
structureboundingbox.field_78892_f = p_175814_4_ + (j - 1);
break;
case WEST:
structureboundingbox.field_78897_a = p_175814_2_ - (j - 1);
structureboundingbox.field_78892_f = p_175814_4_ + 2;
break;
case EAST:
structureboundingbox.field_78893_d = p_175814_2_ + (j - 1);
structureboundingbox.field_78892_f = p_175814_4_ + 2;
}
if(StructureComponent.func_74883_a(p_175814_0_, structureboundingbox) == null) {
break;
}
}
return i > 0?structureboundingbox:null;
}
public void func_74861_a(StructureComponent p_74861_1_, List<StructureComponent> p_74861_2_, Random p_74861_3_) {
int i = this.func_74877_c();
int j = p_74861_3_.nextInt(4);
if(this.field_74885_f != null) {
switch(this.field_74885_f) {
case NORTH:
if(j <= 1) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78896_c - 1, this.field_74885_f, i);
} else if(j == 2) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78896_c, EnumFacing.WEST, i);
} else {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78896_c, EnumFacing.EAST, i);
}
break;
case SOUTH:
if(j <= 1) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78892_f + 1, this.field_74885_f, i);
} else if(j == 2) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78892_f - 3, EnumFacing.WEST, i);
} else {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78892_f - 3, EnumFacing.EAST, i);
}
break;
case WEST:
if(j <= 1) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78896_c, this.field_74885_f, i);
} else if(j == 2) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78896_c - 1, EnumFacing.NORTH, i);
} else {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78892_f + 1, EnumFacing.SOUTH, i);
}
break;
case EAST:
if(j <= 1) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78896_c, this.field_74885_f, i);
} else if(j == 2) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d - 3, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78896_c - 1, EnumFacing.NORTH, i);
} else {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d - 3, this.field_74887_e.field_78895_b - 1 + p_74861_3_.nextInt(3), this.field_74887_e.field_78892_f + 1, EnumFacing.SOUTH, i);
}
}
}
if(i < 8) {
if(this.field_74885_f != EnumFacing.NORTH && this.field_74885_f != EnumFacing.SOUTH) {
for(int i1 = this.field_74887_e.field_78897_a + 3; i1 + 3 <= this.field_74887_e.field_78893_d; i1 += 5) {
int j1 = p_74861_3_.nextInt(5);
if(j1 == 0) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, i1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c - 1, EnumFacing.NORTH, i + 1);
} else if(j1 == 1) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, i1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f + 1, EnumFacing.SOUTH, i + 1);
}
}
} else {
for(int k = this.field_74887_e.field_78896_c + 3; k + 3 <= this.field_74887_e.field_78892_f; k += 5) {
int l = p_74861_3_.nextInt(5);
if(l == 0) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b, k, EnumFacing.WEST, i + 1);
} else if(l == 1) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b, k, EnumFacing.EAST, i + 1);
}
}
}
}
}
protected boolean func_180778_a(World p_180778_1_, StructureBoundingBox p_180778_2_, Random p_180778_3_, int p_180778_4_, int p_180778_5_, int p_180778_6_, List<WeightedRandomChestContent> p_180778_7_, int p_180778_8_) {
BlockPos blockpos = new BlockPos(this.func_74865_a(p_180778_4_, p_180778_6_), this.func_74862_a(p_180778_5_), this.func_74873_b(p_180778_4_, p_180778_6_));
if(p_180778_2_.func_175898_b(blockpos) && p_180778_1_.func_180495_p(blockpos).func_177230_c().func_149688_o() == Material.field_151579_a) {
int i = p_180778_3_.nextBoolean()?1:0;
p_180778_1_.func_180501_a(blockpos, Blocks.field_150448_aq.func_176203_a(this.func_151555_a(Blocks.field_150448_aq, i)), 2);
EntityMinecartChest entityminecartchest = new EntityMinecartChest(p_180778_1_, (double)((float)blockpos.func_177958_n() + 0.5F), (double)((float)blockpos.func_177956_o() + 0.5F), (double)((float)blockpos.func_177952_p() + 0.5F));
WeightedRandomChestContent.func_177630_a(p_180778_3_, p_180778_7_, entityminecartchest, p_180778_8_);
p_180778_1_.func_72838_d(entityminecartchest);
return true;
} else {
return false;
}
}
public boolean func_74875_a(World p_74875_1_, Random p_74875_2_, StructureBoundingBox p_74875_3_) {
if(this.func_74860_a(p_74875_1_, p_74875_3_)) {
return false;
} else {
int i = 0;
int j = 2;
int k = 0;
int l = 2;
int i1 = this.field_74955_d * 5 - 1;
this.func_175804_a(p_74875_1_, p_74875_3_, 0, 0, 0, 2, 1, i1, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175805_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.8F, 0, 2, 0, 2, 2, i1, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
if(this.field_74956_b) {
this.func_175805_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.6F, 0, 0, 0, 2, 1, i1, Blocks.field_150321_G.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
}
for(int j1 = 0; j1 < this.field_74955_d; ++j1) {
int k1 = 2 + j1 * 5;
this.func_175804_a(p_74875_1_, p_74875_3_, 0, 0, k1, 0, 1, k1, Blocks.field_180407_aO.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175804_a(p_74875_1_, p_74875_3_, 2, 0, k1, 2, 1, k1, Blocks.field_180407_aO.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
if(p_74875_2_.nextInt(4) == 0) {
this.func_175804_a(p_74875_1_, p_74875_3_, 0, 2, k1, 0, 2, k1, Blocks.field_150344_f.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175804_a(p_74875_1_, p_74875_3_, 2, 2, k1, 2, 2, k1, Blocks.field_150344_f.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
} else {
this.func_175804_a(p_74875_1_, p_74875_3_, 0, 2, k1, 2, 2, k1, Blocks.field_150344_f.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
}
this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.1F, 0, 2, k1 - 1, Blocks.field_150321_G.func_176223_P());
this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.1F, 2, 2, k1 - 1, Blocks.field_150321_G.func_176223_P());
this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.1F, 0, 2, k1 + 1, Blocks.field_150321_G.func_176223_P());
this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.1F, 2, 2, k1 + 1, Blocks.field_150321_G.func_176223_P());
this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.05F, 0, 2, k1 - 2, Blocks.field_150321_G.func_176223_P());
this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.05F, 2, 2, k1 - 2, Blocks.field_150321_G.func_176223_P());
this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.05F, 0, 2, k1 + 2, Blocks.field_150321_G.func_176223_P());
this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.05F, 2, 2, k1 + 2, Blocks.field_150321_G.func_176223_P());
this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.05F, 1, 2, k1 - 1, Blocks.field_150478_aa.func_176203_a(EnumFacing.UP.func_176745_a()));
this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.05F, 1, 2, k1 + 1, Blocks.field_150478_aa.func_176203_a(EnumFacing.UP.func_176745_a()));
if(p_74875_2_.nextInt(100) == 0) {
this.func_180778_a(p_74875_1_, p_74875_3_, p_74875_2_, 2, 0, k1 - 1, WeightedRandomChestContent.func_177629_a(StructureMineshaftPieces.field_175893_a, new WeightedRandomChestContent[]{Items.field_151134_bR.func_92114_b(p_74875_2_)}), 3 + p_74875_2_.nextInt(4));
}
if(p_74875_2_.nextInt(100) == 0) {
this.func_180778_a(p_74875_1_, p_74875_3_, p_74875_2_, 0, 0, k1 + 1, WeightedRandomChestContent.func_177629_a(StructureMineshaftPieces.field_175893_a, new WeightedRandomChestContent[]{Items.field_151134_bR.func_92114_b(p_74875_2_)}), 3 + p_74875_2_.nextInt(4));
}
if(this.field_74956_b && !this.field_74957_c) {
int l1 = this.func_74862_a(0);
int i2 = k1 - 1 + p_74875_2_.nextInt(3);
int j2 = this.func_74865_a(1, i2);
i2 = this.func_74873_b(1, i2);
BlockPos blockpos = new BlockPos(j2, l1, i2);
if(p_74875_3_.func_175898_b(blockpos)) {
this.field_74957_c = true;
p_74875_1_.func_180501_a(blockpos, Blocks.field_150474_ac.func_176223_P(), 2);
TileEntity tileentity = p_74875_1_.func_175625_s(blockpos);
if(tileentity instanceof TileEntityMobSpawner) {
((TileEntityMobSpawner)tileentity).func_145881_a().func_98272_a("CaveSpider");
}
}
}
}
for(int k2 = 0; k2 <= 2; ++k2) {
for(int i3 = 0; i3 <= i1; ++i3) {
int j3 = -1;
IBlockState iblockstate1 = this.func_175807_a(p_74875_1_, k2, j3, i3, p_74875_3_);
if(iblockstate1.func_177230_c().func_149688_o() == Material.field_151579_a) {
int k3 = -1;
this.func_175811_a(p_74875_1_, Blocks.field_150344_f.func_176223_P(), k2, k3, i3, p_74875_3_);
}
}
}
if(this.field_74958_a) {
for(int l2 = 0; l2 <= i1; ++l2) {
IBlockState iblockstate = this.func_175807_a(p_74875_1_, 1, -1, l2, p_74875_3_);
if(iblockstate.func_177230_c().func_149688_o() != Material.field_151579_a && iblockstate.func_177230_c().func_149730_j()) {
this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.7F, 1, 0, l2, Blocks.field_150448_aq.func_176203_a(this.func_151555_a(Blocks.field_150448_aq, 0)));
}
}
}
return true;
}
}
}
public static class Cross extends StructureComponent {
private EnumFacing field_74953_a;
private boolean field_74952_b;
public Cross() {
}
protected void func_143012_a(NBTTagCompound p_143012_1_) {
p_143012_1_.func_74757_a("tf", this.field_74952_b);
p_143012_1_.func_74768_a("D", this.field_74953_a.func_176736_b());
}
protected void func_143011_b(NBTTagCompound p_143011_1_) {
this.field_74952_b = p_143011_1_.func_74767_n("tf");
this.field_74953_a = EnumFacing.func_176731_b(p_143011_1_.func_74762_e("D"));
}
public Cross(int p_i45624_1_, Random p_i45624_2_, StructureBoundingBox p_i45624_3_, EnumFacing p_i45624_4_) {
super(p_i45624_1_);
this.field_74953_a = p_i45624_4_;
this.field_74887_e = p_i45624_3_;
this.field_74952_b = p_i45624_3_.func_78882_c() > 3;
}
public static StructureBoundingBox func_175813_a(List<StructureComponent> p_175813_0_, Random p_175813_1_, int p_175813_2_, int p_175813_3_, int p_175813_4_, EnumFacing p_175813_5_) {
StructureBoundingBox structureboundingbox = new StructureBoundingBox(p_175813_2_, p_175813_3_, p_175813_4_, p_175813_2_, p_175813_3_ + 2, p_175813_4_);
if(p_175813_1_.nextInt(4) == 0) {
structureboundingbox.field_78894_e += 4;
}
switch(p_175813_5_) {
case NORTH:
structureboundingbox.field_78897_a = p_175813_2_ - 1;
structureboundingbox.field_78893_d = p_175813_2_ + 3;
structureboundingbox.field_78896_c = p_175813_4_ - 4;
break;
case SOUTH:
structureboundingbox.field_78897_a = p_175813_2_ - 1;
structureboundingbox.field_78893_d = p_175813_2_ + 3;
structureboundingbox.field_78892_f = p_175813_4_ + 4;
break;
case WEST:
structureboundingbox.field_78897_a = p_175813_2_ - 4;
structureboundingbox.field_78896_c = p_175813_4_ - 1;
structureboundingbox.field_78892_f = p_175813_4_ + 3;
break;
case EAST:
structureboundingbox.field_78893_d = p_175813_2_ + 4;
structureboundingbox.field_78896_c = p_175813_4_ - 1;
structureboundingbox.field_78892_f = p_175813_4_ + 3;
}
return StructureComponent.func_74883_a(p_175813_0_, structureboundingbox) != null?null:structureboundingbox;
}
public void func_74861_a(StructureComponent p_74861_1_, List<StructureComponent> p_74861_2_, Random p_74861_3_) {
int i = this.func_74877_c();
switch(this.field_74953_a) {
case NORTH:
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c - 1, EnumFacing.NORTH, i);
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c + 1, EnumFacing.WEST, i);
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c + 1, EnumFacing.EAST, i);
break;
case SOUTH:
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f + 1, EnumFacing.SOUTH, i);
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c + 1, EnumFacing.WEST, i);
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c + 1, EnumFacing.EAST, i);
break;
case WEST:
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c - 1, EnumFacing.NORTH, i);
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f + 1, EnumFacing.SOUTH, i);
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c + 1, EnumFacing.WEST, i);
break;
case EAST:
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c - 1, EnumFacing.NORTH, i);
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f + 1, EnumFacing.SOUTH, i);
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c + 1, EnumFacing.EAST, i);
}
if(this.field_74952_b) {
if(p_74861_3_.nextBoolean()) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b + 3 + 1, this.field_74887_e.field_78896_c - 1, EnumFacing.NORTH, i);
}
if(p_74861_3_.nextBoolean()) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b + 3 + 1, this.field_74887_e.field_78896_c + 1, EnumFacing.WEST, i);
}
if(p_74861_3_.nextBoolean()) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b + 3 + 1, this.field_74887_e.field_78896_c + 1, EnumFacing.EAST, i);
}
if(p_74861_3_.nextBoolean()) {
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b + 3 + 1, this.field_74887_e.field_78892_f + 1, EnumFacing.SOUTH, i);
}
}
}
public boolean func_74875_a(World p_74875_1_, Random p_74875_2_, StructureBoundingBox p_74875_3_) {
if(this.func_74860_a(p_74875_1_, p_74875_3_)) {
return false;
} else {
if(this.field_74952_b) {
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c, this.field_74887_e.field_78893_d - 1, this.field_74887_e.field_78895_b + 3 - 1, this.field_74887_e.field_78892_f, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c + 1, this.field_74887_e.field_78893_d, this.field_74887_e.field_78895_b + 3 - 1, this.field_74887_e.field_78892_f - 1, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78894_e - 2, this.field_74887_e.field_78896_c, this.field_74887_e.field_78893_d - 1, this.field_74887_e.field_78894_e, this.field_74887_e.field_78892_f, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78894_e - 2, this.field_74887_e.field_78896_c + 1, this.field_74887_e.field_78893_d, this.field_74887_e.field_78894_e, this.field_74887_e.field_78892_f - 1, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b + 3, this.field_74887_e.field_78896_c + 1, this.field_74887_e.field_78893_d - 1, this.field_74887_e.field_78895_b + 3, this.field_74887_e.field_78892_f - 1, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
} else {
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c, this.field_74887_e.field_78893_d - 1, this.field_74887_e.field_78894_e, this.field_74887_e.field_78892_f, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c + 1, this.field_74887_e.field_78893_d, this.field_74887_e.field_78894_e, this.field_74887_e.field_78892_f - 1, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
}
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c + 1, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78894_e, this.field_74887_e.field_78896_c + 1, Blocks.field_150344_f.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f - 1, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78894_e, this.field_74887_e.field_78892_f - 1, Blocks.field_150344_f.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78893_d - 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c + 1, this.field_74887_e.field_78893_d - 1, this.field_74887_e.field_78894_e, this.field_74887_e.field_78896_c + 1, Blocks.field_150344_f.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78893_d - 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f - 1, this.field_74887_e.field_78893_d - 1, this.field_74887_e.field_78894_e, this.field_74887_e.field_78892_f - 1, Blocks.field_150344_f.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
for(int i = this.field_74887_e.field_78897_a; i <= this.field_74887_e.field_78893_d; ++i) {
for(int j = this.field_74887_e.field_78896_c; j <= this.field_74887_e.field_78892_f; ++j) {
if(this.func_175807_a(p_74875_1_, i, this.field_74887_e.field_78895_b - 1, j, p_74875_3_).func_177230_c().func_149688_o() == Material.field_151579_a) {
this.func_175811_a(p_74875_1_, Blocks.field_150344_f.func_176223_P(), i, this.field_74887_e.field_78895_b - 1, j, p_74875_3_);
}
}
}
return true;
}
}
}
public static class Room extends StructureComponent {
private List<StructureBoundingBox> field_74949_a = Lists.<StructureBoundingBox>newLinkedList();
public Room() {
}
public Room(int p_i2037_1_, Random p_i2037_2_, int p_i2037_3_, int p_i2037_4_) {
super(p_i2037_1_);
this.field_74887_e = new StructureBoundingBox(p_i2037_3_, 50, p_i2037_4_, p_i2037_3_ + 7 + p_i2037_2_.nextInt(6), 54 + p_i2037_2_.nextInt(6), p_i2037_4_ + 7 + p_i2037_2_.nextInt(6));
}
public void func_74861_a(StructureComponent p_74861_1_, List<StructureComponent> p_74861_2_, Random p_74861_3_) {
int i = this.func_74877_c();
int j = this.field_74887_e.func_78882_c() - 3 - 1;
if(j <= 0) {
j = 1;
}
int k;
for(? = 0; k < this.field_74887_e.func_78883_b(); k = k + 4) {
k = k + p_74861_3_.nextInt(this.field_74887_e.func_78883_b());
if(k + 3 > this.field_74887_e.func_78883_b()) {
break;
}
StructureComponent structurecomponent = StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + k, this.field_74887_e.field_78895_b + p_74861_3_.nextInt(j) + 1, this.field_74887_e.field_78896_c - 1, EnumFacing.NORTH, i);
if(structurecomponent != null) {
StructureBoundingBox structureboundingbox = structurecomponent.func_74874_b();
this.field_74949_a.add(new StructureBoundingBox(structureboundingbox.field_78897_a, structureboundingbox.field_78895_b, this.field_74887_e.field_78896_c, structureboundingbox.field_78893_d, structureboundingbox.field_78894_e, this.field_74887_e.field_78896_c + 1));
}
}
for(k = 0; k < this.field_74887_e.func_78883_b(); k = k + 4) {
k = k + p_74861_3_.nextInt(this.field_74887_e.func_78883_b());
if(k + 3 > this.field_74887_e.func_78883_b()) {
break;
}
StructureComponent structurecomponent1 = StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + k, this.field_74887_e.field_78895_b + p_74861_3_.nextInt(j) + 1, this.field_74887_e.field_78892_f + 1, EnumFacing.SOUTH, i);
if(structurecomponent1 != null) {
StructureBoundingBox structureboundingbox1 = structurecomponent1.func_74874_b();
this.field_74949_a.add(new StructureBoundingBox(structureboundingbox1.field_78897_a, structureboundingbox1.field_78895_b, this.field_74887_e.field_78892_f - 1, structureboundingbox1.field_78893_d, structureboundingbox1.field_78894_e, this.field_74887_e.field_78892_f));
}
}
for(k = 0; k < this.field_74887_e.func_78880_d(); k = k + 4) {
k = k + p_74861_3_.nextInt(this.field_74887_e.func_78880_d());
if(k + 3 > this.field_74887_e.func_78880_d()) {
break;
}
StructureComponent structurecomponent2 = StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b + p_74861_3_.nextInt(j) + 1, this.field_74887_e.field_78896_c + k, EnumFacing.WEST, i);
if(structurecomponent2 != null) {
StructureBoundingBox structureboundingbox2 = structurecomponent2.func_74874_b();
this.field_74949_a.add(new StructureBoundingBox(this.field_74887_e.field_78897_a, structureboundingbox2.field_78895_b, structureboundingbox2.field_78896_c, this.field_74887_e.field_78897_a + 1, structureboundingbox2.field_78894_e, structureboundingbox2.field_78892_f));
}
}
for(k = 0; k < this.field_74887_e.func_78880_d(); k = k + 4) {
k = k + p_74861_3_.nextInt(this.field_74887_e.func_78880_d());
if(k + 3 > this.field_74887_e.func_78880_d()) {
break;
}
StructureComponent structurecomponent3 = StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b + p_74861_3_.nextInt(j) + 1, this.field_74887_e.field_78896_c + k, EnumFacing.EAST, i);
if(structurecomponent3 != null) {
StructureBoundingBox structureboundingbox3 = structurecomponent3.func_74874_b();
this.field_74949_a.add(new StructureBoundingBox(this.field_74887_e.field_78893_d - 1, structureboundingbox3.field_78895_b, structureboundingbox3.field_78896_c, this.field_74887_e.field_78893_d, structureboundingbox3.field_78894_e, structureboundingbox3.field_78892_f));
}
}
}
public boolean func_74875_a(World p_74875_1_, Random p_74875_2_, StructureBoundingBox p_74875_3_) {
if(this.func_74860_a(p_74875_1_, p_74875_3_)) {
return false;
} else {
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c, this.field_74887_e.field_78893_d, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f, Blocks.field_150346_d.func_176223_P(), Blocks.field_150350_a.func_176223_P(), true);
this.func_175804_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b + 1, this.field_74887_e.field_78896_c, this.field_74887_e.field_78893_d, Math.min(this.field_74887_e.field_78895_b + 3, this.field_74887_e.field_78894_e), this.field_74887_e.field_78892_f, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
for(StructureBoundingBox structureboundingbox : this.field_74949_a) {
this.func_175804_a(p_74875_1_, p_74875_3_, structureboundingbox.field_78897_a, structureboundingbox.field_78894_e - 2, structureboundingbox.field_78896_c, structureboundingbox.field_78893_d, structureboundingbox.field_78894_e, structureboundingbox.field_78892_f, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
}
this.func_180777_a(p_74875_1_, p_74875_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b + 4, this.field_74887_e.field_78896_c, this.field_74887_e.field_78893_d, this.field_74887_e.field_78894_e, this.field_74887_e.field_78892_f, Blocks.field_150350_a.func_176223_P(), false);
return true;
}
}
public void func_181138_a(int p_181138_1_, int p_181138_2_, int p_181138_3_) {
super.func_181138_a(p_181138_1_, p_181138_2_, p_181138_3_);
for(StructureBoundingBox structureboundingbox : this.field_74949_a) {
structureboundingbox.func_78886_a(p_181138_1_, p_181138_2_, p_181138_3_);
}
}
protected void func_143012_a(NBTTagCompound p_143012_1_) {
NBTTagList nbttaglist = new NBTTagList();
for(StructureBoundingBox structureboundingbox : this.field_74949_a) {
nbttaglist.func_74742_a(structureboundingbox.func_151535_h());
}
p_143012_1_.func_74782_a("Entrances", nbttaglist);
}
protected void func_143011_b(NBTTagCompound p_143011_1_) {
NBTTagList nbttaglist = p_143011_1_.func_150295_c("Entrances", 11);
for(int i = 0; i < nbttaglist.func_74745_c(); ++i) {
this.field_74949_a.add(new StructureBoundingBox(nbttaglist.func_150306_c(i)));
}
}
}
public static class Stairs extends StructureComponent {
public Stairs() {
}
public Stairs(int p_i45623_1_, Random p_i45623_2_, StructureBoundingBox p_i45623_3_, EnumFacing p_i45623_4_) {
super(p_i45623_1_);
this.field_74885_f = p_i45623_4_;
this.field_74887_e = p_i45623_3_;
}
protected void func_143012_a(NBTTagCompound p_143012_1_) {
}
protected void func_143011_b(NBTTagCompound p_143011_1_) {
}
public static StructureBoundingBox func_175812_a(List<StructureComponent> p_175812_0_, Random p_175812_1_, int p_175812_2_, int p_175812_3_, int p_175812_4_, EnumFacing p_175812_5_) {
StructureBoundingBox structureboundingbox = new StructureBoundingBox(p_175812_2_, p_175812_3_ - 5, p_175812_4_, p_175812_2_, p_175812_3_ + 2, p_175812_4_);
switch(p_175812_5_) {
case NORTH:
structureboundingbox.field_78893_d = p_175812_2_ + 2;
structureboundingbox.field_78896_c = p_175812_4_ - 8;
break;
case SOUTH:
structureboundingbox.field_78893_d = p_175812_2_ + 2;
structureboundingbox.field_78892_f = p_175812_4_ + 8;
break;
case WEST:
structureboundingbox.field_78897_a = p_175812_2_ - 8;
structureboundingbox.field_78892_f = p_175812_4_ + 2;
break;
case EAST:
structureboundingbox.field_78893_d = p_175812_2_ + 8;
structureboundingbox.field_78892_f = p_175812_4_ + 2;
}
return StructureComponent.func_74883_a(p_175812_0_, structureboundingbox) != null?null:structureboundingbox;
}
public void func_74861_a(StructureComponent p_74861_1_, List<StructureComponent> p_74861_2_, Random p_74861_3_) {
int i = this.func_74877_c();
if(this.field_74885_f != null) {
switch(this.field_74885_f) {
case NORTH:
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c - 1, EnumFacing.NORTH, i);
break;
case SOUTH:
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f + 1, EnumFacing.SOUTH, i);
break;
case WEST:
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c, EnumFacing.WEST, i);
break;
case EAST:
StructureMineshaftPieces.func_175890_b(p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c, EnumFacing.EAST, i);
}
}
}
public boolean func_74875_a(World p_74875_1_, Random p_74875_2_, StructureBoundingBox p_74875_3_) {
if(this.func_74860_a(p_74875_1_, p_74875_3_)) {
return false;
} else {
this.func_175804_a(p_74875_1_, p_74875_3_, 0, 5, 0, 2, 7, 1, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
this.func_175804_a(p_74875_1_, p_74875_3_, 0, 0, 7, 2, 2, 8, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
for(int i = 0; i < 5; ++i) {
this.func_175804_a(p_74875_1_, p_74875_3_, 0, 5 - i - (i < 4?1:0), 2 + i, 2, 7 - i, 2 + i, Blocks.field_150350_a.func_176223_P(), Blocks.field_150350_a.func_176223_P(), false);
}
return true;
}
}
}
}
:fixMcSources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':fixMcSources'.
> com.cloudbees.diff.PatchException: Cannot find hunk target
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment