當前位置: 首頁>>代碼示例>>Java>>正文


Java StructureBoundingBox.getComponentToAddBoundingBox方法代碼示例

本文整理匯總了Java中net.minecraft.world.gen.structure.StructureBoundingBox.getComponentToAddBoundingBox方法的典型用法代碼示例。如果您正苦於以下問題:Java StructureBoundingBox.getComponentToAddBoundingBox方法的具體用法?Java StructureBoundingBox.getComponentToAddBoundingBox怎麽用?Java StructureBoundingBox.getComponentToAddBoundingBox使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.world.gen.structure.StructureBoundingBox的用法示例。


在下文中一共展示了StructureBoundingBox.getComponentToAddBoundingBox方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: buildComponent

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
@Override
public Village buildComponent(PieceWeight villagePiece, Start startPiece, List<StructureComponent> pieces,
		Random random, int p1, int p2, int p3, EnumFacing facing, int p5) {
	StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(p1, p2, p3, 0,
			0, 0, 14, 16, 11, facing);
	return canVillageGoDeeper(structureboundingbox)
			&& StructureComponent.findIntersecting(pieces, structureboundingbox) == null
					? new MannCoBuilding(startPiece, p5, random, structureboundingbox, facing) : null;
}
 
開發者ID:rafradek,項目名稱:Mods,代碼行數:10,代碼來源:MannCoBuilding.java

示例2: func_74933_a

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
public static StructureBoundingBox func_74933_a(StructureVillagePieces.Start 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 i1 = 7 * MathHelper.getRandomIntegerInRange(p_74933_2_, 3, 5); i1 >= 7; i1 -= 7)
    {
        StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(p_74933_3_, p_74933_4_, p_74933_5_, 0, 0, 0, 3, 3, i1, p_74933_6_);

        if (StructureComponent.findIntersecting(p_74933_1_, structureboundingbox) == null)
        {
            return structureboundingbox;
        }
    }

    return null;
}
 
開發者ID:jtrent238,項目名稱:PopularMMOS-EpicProportions-Mod,代碼行數:15,代碼來源:StructureVillagePieces.java

示例3: func_74933_a

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
@SuppressWarnings("rawtypes")
public static StructureBoundingBox func_74933_a(VillageStructureComponentStartPiece par0ComponentVillageStartPiece, List par1List, Random par2Random, int par3, int par4, int par5, int par6) {
	for (int var7 = 7 * MathHelper.getRandomIntegerInRange(par2Random, 3, 5); var7 >= 7; var7 -= 7) {
		final StructureBoundingBox var8 = StructureBoundingBox.getComponentToAddBoundingBox(par3, par4, par5, 0, 0, 0, 3, 3, var7, par6);

		if (StructureComponent.findIntersecting(par1List, var8) == null) {
			return var8;
		}
	}

	return null;
}
 
開發者ID:4Space,項目名稱:4Space-5,代碼行數:13,代碼來源:VillageStructureComponentPathGen.java

示例4: createPiece

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
public static VillagePieceKeep createPiece(StructureVillagePieces.Start start, List<StructureComponent> structures, Random rand, int x, int y,
		int z, EnumFacing facing, int p_175850_7_) {
	BlockPos size = new BlockMapMeasurer(NAME).measure();
	StructureBoundingBox bounds = StructureBoundingBox.getComponentToAddBoundingBox(x, y, z, 0, 0, 0, size.getX(), size.getY(), size.getZ(),
			facing);
	return canVillageGoDeeper(bounds) && StructureComponent.findIntersecting(structures, bounds) == null
			? new VillagePieceKeep(start, p_175850_7_, rand, bounds, facing) : null;
}
 
開發者ID:ToroCraft,項目名稱:ToroQuest,代碼行數:9,代碼來源:VillageHandlerKeep.java

示例5: createPiece

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
public static Cave createPiece(StructureVillagePieces.Start start, List<StructureComponent> components, Random rand, int x, int y, int z, EnumFacing facing, int type)
{
	StructureBoundingBox box = StructureBoundingBox.getComponentToAddBoundingBox(x, y, z, 0, 0, 0, 9, 7, 10, facing);
	return canVillageGoDeeper(box) && StructureComponent.findIntersecting(components, box) == null ? new Cave(start, type, rand, box, facing) : null;
}
 
開發者ID:DarkMorford,項目名稱:BetterThanWeagles,代碼行數:6,代碼來源:VillagerStructures.java

示例6: func_74904_a

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
public static StructureBoundingBox func_74904_a(StructureVillagePieces.Start p_74904_0_, List p_74904_1_, Random p_74904_2_, int p_74904_3_, int p_74904_4_, int p_74904_5_, int p_74904_6_)
{
    StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(p_74904_3_, p_74904_4_, p_74904_5_, 0, 0, 0, 3, 4, 2, p_74904_6_);
    return StructureComponent.findIntersecting(p_74904_1_, structureboundingbox) != null ? null : structureboundingbox;
}
 
開發者ID:jtrent238,項目名稱:PopularMMOS-EpicProportions-Mod,代碼行數:6,代碼來源:StructureVillagePieces.java

示例7: func_74900_a

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
@SuppressWarnings("rawtypes")
public static StructureComponentVillageField2 func_74900_a(StructureComponentVillageStartPiece par0ComponentVillageStartPiece, List par1List, Random par2Random, int par3, int par4, int par5, int par6, int par7)
{
    final StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(par3, par4, par5, 0, 0, 0, 13, 4, 9, par6);
    return StructureComponentVillage.canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(par1List, structureboundingbox) == null ? new StructureComponentVillageField2(par0ComponentVillageStartPiece, par7, par2Random, structureboundingbox, par6) : null;
}
 
開發者ID:4Space,項目名稱:4Space-5,代碼行數:7,代碼來源:StructureComponentVillageField2.java

示例8: buildComponent

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
public static ComponentVillageUndertaker buildComponent(StructureVillagePieces.Start startPiece, List list, Random random, int par3, int par4, int par5, EnumFacing facing, int par7) {
    StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(par3, par4, par5, 0, 0, 0, X_LENGTH, HEIGHT, Z_LENGTH, facing);
    return canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(list, structureboundingbox) == null ? new ComponentVillageUndertaker(startPiece, par7, random, structureboundingbox, facing) : null;
}
 
開發者ID:NightKosh,項目名稱:Gravestone-mod-Extended,代碼行數:5,代碼來源:ComponentVillageUndertaker.java

示例9: func_74898_a

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
public static StructureVillagePieces.House1 func_74898_a(StructureVillagePieces.Start 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 structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(p_74898_3_, p_74898_4_, p_74898_5_, 0, 0, 0, 9, 9, 6, p_74898_6_);
    return canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(p_74898_1_, structureboundingbox) == null ? new StructureVillagePieces.House1(p_74898_0_, p_74898_7_, p_74898_2_, structureboundingbox, p_74898_6_) : null;
}
 
開發者ID:jtrent238,項目名稱:PopularMMOS-EpicProportions-Mod,代碼行數:6,代碼來源:StructureVillagePieces.java

示例10: func_74921_a

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
@SuppressWarnings("rawtypes")
public static StructureComponentVillageHouse func_74921_a(StructureComponentVillageStartPiece par0ComponentVillageStartPiece, List par1List, Random par2Random, int par3, int par4, int par5, int par6, int par7)
{
    final StructureBoundingBox var8 = StructureBoundingBox.getComponentToAddBoundingBox(par3, par4, par5, 0, 0, 0, 17, 9, 17, par6);
    return StructureComponent.findIntersecting(par1List, var8) == null ? new StructureComponentVillageHouse(par0ComponentVillageStartPiece, par7, par2Random, var8, par6) : null;
}
 
開發者ID:4Space,項目名稱:4Space-5,代碼行數:7,代碼來源:StructureComponentVillageHouse.java

示例11: func_74908_a

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
public static StructureComponentVillageWoodHut func_74908_a(StructureComponentVillageStartPiece par0ComponentVillageStartPiece, List<StructureComponent> par1List, Random par2Random, int par3, int par4, int par5, int par6, int par7)
{
    final StructureBoundingBox var8 = StructureBoundingBox.getComponentToAddBoundingBox(par3, par4, par5, 0, 0, 0, 17, 9, 17, par6);
    return StructureComponent.findIntersecting(par1List, var8) == null ? new StructureComponentVillageWoodHut(par0ComponentVillageStartPiece, par7, par2Random, var8, par6) : null;
}
 
開發者ID:4Space,項目名稱:4Space-5,代碼行數:6,代碼來源:StructureComponentVillageWoodHut.java

示例12: func_74921_a

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
@SuppressWarnings("rawtypes")
public static VillageStructureComponentHouse func_74921_a(VillageStructureComponentStartPiece par0ComponentVillageStartPiece, List par1List, Random par2Random, int par3, int par4, int par5, int par6, int par7) {
	final StructureBoundingBox var8 = StructureBoundingBox.getComponentToAddBoundingBox(par3, par4, par5, 0, 0, 0, 17, 9, 17, par6);
	return StructureComponent.findIntersecting(par1List, var8) == null ? new VillageStructureComponentHouse(par0ComponentVillageStartPiece, par7, par2Random, var8, par6) : null;
}
 
開發者ID:4Space,項目名稱:4Space-5,代碼行數:6,代碼來源:VillageStructureComponentHouse.java

示例13: func_74900_a

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
public static StructureVillagePieces.Field1 func_74900_a(StructureVillagePieces.Start 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 structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(p_74900_3_, p_74900_4_, p_74900_5_, 0, 0, 0, 13, 4, 9, p_74900_6_);
    return canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(p_74900_1_, structureboundingbox) == null ? new StructureVillagePieces.Field1(p_74900_0_, p_74900_7_, p_74900_2_, structureboundingbox, p_74900_6_) : null;
}
 
開發者ID:jtrent238,項目名稱:PopularMMOS-EpicProportions-Mod,代碼行數:6,代碼來源:StructureVillagePieces.java

示例14: func_74900_a

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
@SuppressWarnings("rawtypes")
public static VillageStructureComponentField2 func_74900_a(VillageStructureComponentStartPiece par0ComponentVillageStartPiece, List par1List, Random par2Random, int par3, int par4, int par5, int par6, int par7) {
	final StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(par3, par4, par5, 0, 0, 0, 13, 4, 9, par6);
	return VillageStructureComponent.canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(par1List, structureboundingbox) == null ? new VillageStructureComponentField2(par0ComponentVillageStartPiece, par7, par2Random, structureboundingbox, par6) : null;
}
 
開發者ID:4Space,項目名稱:4Space-5,代碼行數:6,代碼來源:VillageStructureComponentField2.java

示例15: func_74900_a

import net.minecraft.world.gen.structure.StructureBoundingBox; //導入方法依賴的package包/類
@SuppressWarnings("rawtypes")
public static VillageStructureComponentField func_74900_a(VillageStructureComponentStartPiece par0ComponentVillageStartPiece, List par1List, Random par2Random, int par3, int par4, int par5, int par6, int par7) {
	final StructureBoundingBox var8 = StructureBoundingBox.getComponentToAddBoundingBox(par3, par4, par5, 0, 0, 0, 13, 4, 9, par6);
	return StructureComponent.findIntersecting(par1List, var8) == null ? new VillageStructureComponentField(par0ComponentVillageStartPiece, par7, par2Random, var8, par6) : null;
}
 
開發者ID:4Space,項目名稱:4Space-5,代碼行數:6,代碼來源:VillageStructureComponentField.java


注:本文中的net.minecraft.world.gen.structure.StructureBoundingBox.getComponentToAddBoundingBox方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。