本文整理汇总了Java中net.minecraft.world.gen.structure.StructureComponent.func_74883_a方法的典型用法代码示例。如果您正苦于以下问题:Java StructureComponent.func_74883_a方法的具体用法?Java StructureComponent.func_74883_a怎么用?Java StructureComponent.func_74883_a使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.world.gen.structure.StructureComponent
的用法示例。
在下文中一共展示了StructureComponent.func_74883_a方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_74954_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static StructureBoundingBox func_74954_a(List p_74954_0_, Random p_74954_1_, int p_74954_2_, int p_74954_3_, int p_74954_4_, int p_74954_5_) {
StructureBoundingBox var6 = new StructureBoundingBox(p_74954_2_, p_74954_3_, p_74954_4_, p_74954_2_, p_74954_3_ + 2, p_74954_4_);
int var7;
for(var7 = p_74954_1_.nextInt(3) + 2; var7 > 0; --var7) {
int var8 = var7 * 5;
switch(p_74954_5_) {
case 0:
var6.field_78893_d = p_74954_2_ + 2;
var6.field_78892_f = p_74954_4_ + (var8 - 1);
break;
case 1:
var6.field_78897_a = p_74954_2_ - (var8 - 1);
var6.field_78892_f = p_74954_4_ + 2;
break;
case 2:
var6.field_78893_d = p_74954_2_ + 2;
var6.field_78896_c = p_74954_4_ - (var8 - 1);
break;
case 3:
var6.field_78893_d = p_74954_2_ + (var8 - 1);
var6.field_78892_f = p_74954_4_ + 2;
}
if(StructureComponent.func_74883_a(p_74954_0_, var6) == null) {
break;
}
}
return var7 > 0?var6:null;
}
示例2: func_74933_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static StructureBoundingBox func_74933_a(ComponentVillageStartPiece p_74933_0_, List p_74933_1_, Random p_74933_2_, int p_74933_3_, int p_74933_4_, int p_74933_5_, int p_74933_6_) {
for(int var7 = 7 * MathHelper.func_76136_a(p_74933_2_, 3, 5); var7 >= 7; var7 -= 7) {
StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74933_3_, p_74933_4_, p_74933_5_, 0, 0, 0, 3, 3, var7, p_74933_6_);
if(StructureComponent.func_74883_a(p_74933_1_, var8) == null) {
return var8;
}
}
return null;
}
示例3: func_75006_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentStrongholdLibrary func_75006_a(List p_75006_0_, Random p_75006_1_, int p_75006_2_, int p_75006_3_, int p_75006_4_, int p_75006_5_, int p_75006_6_) {
StructureBoundingBox var7 = StructureBoundingBox.func_78889_a(p_75006_2_, p_75006_3_, p_75006_4_, -4, -1, 0, 14, 11, 15, p_75006_5_);
if(!func_74991_a(var7) || StructureComponent.func_74883_a(p_75006_0_, var7) != null) {
var7 = StructureBoundingBox.func_78889_a(p_75006_2_, p_75006_3_, p_75006_4_, -4, -1, 0, 14, 6, 15, p_75006_5_);
if(!func_74991_a(var7) || StructureComponent.func_74883_a(p_75006_0_, var7) != null) {
return null;
}
}
return new ComponentStrongholdLibrary(p_75006_6_, p_75006_1_, var7, p_75006_5_);
}
示例4: func_74983_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentNetherBridgeStraight func_74983_a(List p_74983_0_, Random p_74983_1_, int p_74983_2_, int p_74983_3_, int p_74983_4_, int p_74983_5_, int p_74983_6_) {
StructureBoundingBox var7 = StructureBoundingBox.func_78889_a(p_74983_2_, p_74983_3_, p_74983_4_, -1, -3, 0, 5, 10, 19, p_74983_5_);
return func_74964_a(var7) && StructureComponent.func_74883_a(p_74983_0_, var7) == null?new ComponentNetherBridgeStraight(p_74983_6_, p_74983_1_, var7, p_74983_5_):null;
}
示例5: func_74974_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentNetherBridgeCrossing func_74974_a(List p_74974_0_, Random p_74974_1_, int p_74974_2_, int p_74974_3_, int p_74974_4_, int p_74974_5_, int p_74974_6_) {
StructureBoundingBox var7 = StructureBoundingBox.func_78889_a(p_74974_2_, p_74974_3_, p_74974_4_, -2, 0, 0, 7, 9, 7, p_74974_5_);
return func_74964_a(var7) && StructureComponent.func_74883_a(p_74974_0_, var7) == null?new ComponentNetherBridgeCrossing(p_74974_6_, p_74974_1_, var7, p_74974_5_):null;
}
示例6: func_74973_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentNetherBridgeStairs func_74973_a(List p_74973_0_, Random p_74973_1_, int p_74973_2_, int p_74973_3_, int p_74973_4_, int p_74973_5_, int p_74973_6_) {
StructureBoundingBox var7 = StructureBoundingBox.func_78889_a(p_74973_2_, p_74973_3_, p_74973_4_, -2, 0, 0, 7, 11, 7, p_74973_5_);
return func_74964_a(var7) && StructureComponent.func_74883_a(p_74973_0_, var7) == null?new ComponentNetherBridgeStairs(p_74973_6_, p_74973_1_, var7, p_74973_5_):null;
}
示例7: func_74981_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentNetherBridgeCorridor5 func_74981_a(List p_74981_0_, Random p_74981_1_, int p_74981_2_, int p_74981_3_, int p_74981_4_, int p_74981_5_, int p_74981_6_) {
StructureBoundingBox var7 = StructureBoundingBox.func_78889_a(p_74981_2_, p_74981_3_, p_74981_4_, -1, 0, 0, 5, 7, 5, p_74981_5_);
return func_74964_a(var7) && StructureComponent.func_74883_a(p_74981_0_, var7) == null?new ComponentNetherBridgeCorridor5(p_74981_6_, p_74981_1_, var7, p_74981_5_):null;
}
示例8: func_74982_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentNetherBridgeCorridor3 func_74982_a(List p_74982_0_, Random p_74982_1_, int p_74982_2_, int p_74982_3_, int p_74982_4_, int p_74982_5_, int p_74982_6_) {
StructureBoundingBox var7 = StructureBoundingBox.func_78889_a(p_74982_2_, p_74982_3_, p_74982_4_, -1, -7, 0, 5, 14, 10, p_74982_5_);
return func_74964_a(var7) && StructureComponent.func_74883_a(p_74982_0_, var7) == null?new ComponentNetherBridgeCorridor3(p_74982_6_, p_74982_1_, var7, p_74982_5_):null;
}
示例9: func_74898_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentVillageHouse1 func_74898_a(ComponentVillageStartPiece p_74898_0_, List p_74898_1_, Random p_74898_2_, int p_74898_3_, int p_74898_4_, int p_74898_5_, int p_74898_6_, int p_74898_7_) {
StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74898_3_, p_74898_4_, p_74898_5_, 0, 0, 0, 9, 9, 6, p_74898_6_);
return func_74895_a(var8) && StructureComponent.func_74883_a(p_74898_1_, var8) == null?new ComponentVillageHouse1(p_74898_0_, p_74898_7_, p_74898_2_, var8, p_74898_6_):null;
}
示例10: func_75018_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentStrongholdStraight func_75018_a(List p_75018_0_, Random p_75018_1_, int p_75018_2_, int p_75018_3_, int p_75018_4_, int p_75018_5_, int p_75018_6_) {
StructureBoundingBox var7 = StructureBoundingBox.func_78889_a(p_75018_2_, p_75018_3_, p_75018_4_, -1, -1, 0, 5, 5, 7, p_75018_5_);
return func_74991_a(var7) && StructureComponent.func_74883_a(p_75018_0_, var7) == null?new ComponentStrongholdStraight(p_75018_6_, p_75018_1_, var7, p_75018_5_):null;
}
示例11: func_74985_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentNetherBridgeCorridor4 func_74985_a(List p_74985_0_, Random p_74985_1_, int p_74985_2_, int p_74985_3_, int p_74985_4_, int p_74985_5_, int p_74985_6_) {
StructureBoundingBox var7 = StructureBoundingBox.func_78889_a(p_74985_2_, p_74985_3_, p_74985_4_, -3, 0, 0, 9, 7, 9, p_74985_5_);
return func_74964_a(var7) && StructureComponent.func_74883_a(p_74985_0_, var7) == null?new ComponentNetherBridgeCorridor4(p_74985_6_, p_74985_1_, var7, p_74985_5_):null;
}
示例12: func_74912_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentVillageHouse4_Garden func_74912_a(ComponentVillageStartPiece p_74912_0_, List p_74912_1_, Random p_74912_2_, int p_74912_3_, int p_74912_4_, int p_74912_5_, int p_74912_6_, int p_74912_7_) {
StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74912_3_, p_74912_4_, p_74912_5_, 0, 0, 0, 5, 6, 5, p_74912_6_);
return StructureComponent.func_74883_a(p_74912_1_, var8) != null?null:new ComponentVillageHouse4_Garden(p_74912_0_, p_74912_7_, p_74912_2_, var8, p_74912_6_);
}
示例13: func_74984_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentNetherBridgeEntrance func_74984_a(List p_74984_0_, Random p_74984_1_, int p_74984_2_, int p_74984_3_, int p_74984_4_, int p_74984_5_, int p_74984_6_) {
StructureBoundingBox var7 = StructureBoundingBox.func_78889_a(p_74984_2_, p_74984_3_, p_74984_4_, -5, -3, 0, 13, 14, 13, p_74984_5_);
return func_74964_a(var7) && StructureComponent.func_74883_a(p_74984_0_, var7) == null?new ComponentNetherBridgeEntrance(p_74984_6_, p_74984_1_, var7, p_74984_5_):null;
}
示例14: func_74900_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentVillageField func_74900_a(ComponentVillageStartPiece p_74900_0_, List p_74900_1_, Random p_74900_2_, int p_74900_3_, int p_74900_4_, int p_74900_5_, int p_74900_6_, int p_74900_7_) {
StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74900_3_, p_74900_4_, p_74900_5_, 0, 0, 0, 13, 4, 9, p_74900_6_);
return func_74895_a(var8) && StructureComponent.func_74883_a(p_74900_1_, var8) == null?new ComponentVillageField(p_74900_0_, p_74900_7_, p_74900_2_, var8, p_74900_6_):null;
}
示例15: func_74915_a
import net.minecraft.world.gen.structure.StructureComponent; //导入方法依赖的package包/类
public static ComponentVillageHouse2 func_74915_a(ComponentVillageStartPiece p_74915_0_, List p_74915_1_, Random p_74915_2_, int p_74915_3_, int p_74915_4_, int p_74915_5_, int p_74915_6_, int p_74915_7_) {
StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74915_3_, p_74915_4_, p_74915_5_, 0, 0, 0, 10, 6, 7, p_74915_6_);
return func_74895_a(var8) && StructureComponent.func_74883_a(p_74915_1_, var8) == null?new ComponentVillageHouse2(p_74915_0_, p_74915_7_, p_74915_2_, var8, p_74915_6_):null;
}