Skip to content

Package net.minecraft.world.level.levelgen.structure.structures

Part 1/1


BuriedTreasurePieces$BuriedTreasurePiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.BuriedTreasurePieces$BuriedTreasurePiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/BuriedTreasurePieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StructurePiece

net.minecraft.world.level.levelgen.structure.structures.BuriedTreasurePieces$BuriedTreasurePiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/BuriedTreasurePieces.java:30
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.BuriedTreasurePieces$BuriedTreasurePiece#BuriedTreasurePiece(BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/BuriedTreasurePieces.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ BuriedTreasurePieces.BuriedTreasurePiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

สร้างออบเจ็กต์: BoundingBox.

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
BuriedTreasurePieces.BuriedTreasurePiece instance = new BuriedTreasurePieces.BuriedTreasurePiece(blockPos);

net.minecraft.world.level.levelgen.structure.structures.BuriedTreasurePieces$BuriedTreasurePiece#BuriedTreasurePiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/BuriedTreasurePieces.java:26
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ BuriedTreasurePieces.BuriedTreasurePiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
BuriedTreasurePieces.BuriedTreasurePiece instance = new BuriedTreasurePieces.BuriedTreasurePiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.BuriedTreasurePieces$BuriedTreasurePiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/BuriedTreasurePieces.java:34
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ BuriedTreasurePieces$BuriedTreasurePiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: boundingBox. เรียกต่อ: getHeight(), minX(), minZ(), MutableBlockPos(), getY(), getMinY(), getBlockState(), below(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos, BoundingBox.

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

BuriedTreasurePieces.BuriedTreasurePiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

BuriedTreasureStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.BuriedTreasureStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/BuriedTreasureStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.BuriedTreasureStructure#BuriedTreasureStructure(Structure.StructureSettings)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/BuriedTreasureStructure.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ BuriedTreasureStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Structure.StructureSettings structureSettings

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
BuriedTreasureStructure instance = new BuriedTreasureStructure(structureSettings);

net.minecraft.world.level.levelgen.structure.structures.BuriedTreasureStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/BuriedTreasureStructure.java:18
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

เรียกต่อ: onTopOfChunkCenter(), generatePieces().

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

BuriedTreasureStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.BuriedTreasureStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/BuriedTreasureStructure.java:30
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ BuriedTreasureStructure

ทำงานยังไง

คืนค่า: StructureType.BURIED_TREASURE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BuriedTreasureStructure instance = ...;
StructureType<?> result = instance.type();

DesertPyramidPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.DesertPyramidPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/DesertPyramidPiece.java
  • Type: class
  • Modifiers: public
  • Extends: ScatteredFeaturePiece

net.minecraft.world.level.levelgen.structure.structures.DesertPyramidPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/DesertPyramidPiece.java:42
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.DesertPyramidPiece#DesertPyramidPiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/DesertPyramidPiece.java:34
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ DesertPyramidPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getBoolean().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
DesertPyramidPiece instance = new DesertPyramidPiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.DesertPyramidPiece#DesertPyramidPiece(RandomSource,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/DesertPyramidPiece.java:30
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ DesertPyramidPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getRandomHorizontalDirection().

Parameters

  • RandomSource randomSource
  • int i
  • int j

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
DesertPyramidPiece instance = new DesertPyramidPiece(randomSource, 0, 0);

net.minecraft.world.level.levelgen.structure.structures.DesertPyramidPiece#getPotentialSuspiciousSandWorldPositions()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/DesertPyramidPiece.java:434
  • Modifiers: public
  • Return: List<BlockPos>

คืออะไร

อ่านค่า Potential Suspicious Sand World Positions

ทำงานยังไง

คืนค่า: this.potentialSuspiciousSandWorldPositions.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

DesertPyramidPiece instance = ...;
List<BlockPos> result = instance.getPotentialSuspiciousSandWorldPositions();

net.minecraft.world.level.levelgen.structure.structures.DesertPyramidPiece#getRandomCollapsedRoofPos()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/DesertPyramidPiece.java:438
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Random Collapsed Roof Pos

ทำงานยังไง

คืนค่า: this.randomCollapsedRoofPos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

DesertPyramidPiece instance = ...;
BlockPos result = instance.getRandomCollapsedRoofPos();

net.minecraft.world.level.levelgen.structure.structures.DesertPyramidPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/DesertPyramidPiece.java:51
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ DesertPyramidPiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: updateHeightPositionToLowestGroundHeight(), nextInt(), generateBox(), defaultBlockState(), fillColumnDown(), setValue(), placeBlock(), get2DDataValue().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

DesertPyramidPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

DesertPyramidStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.DesertPyramidStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/DesertPyramidStructure.java
  • Type: class
  • Modifiers: public
  • Extends: SinglePieceStructure

net.minecraft.world.level.levelgen.structure.structures.DesertPyramidStructure#afterPlace(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,PiecesContainer)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/DesertPyramidStructure.java:32
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ afterPlace ตาม implementation ของ DesertPyramidStructure

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: create(), pieces(), addAll(), getPotentialSuspiciousSandWorldPositions(), placeSuspiciousSand(), getRandomCollapsedRoofPos(), stream(), toList(). สร้างออบเจ็กต์: ObjectArrayList<>.

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • PiecesContainer piecesContainer

ตัวอย่างใช้งาน

DesertPyramidStructure instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
PiecesContainer piecesContainer = ...;
instance.afterPlace(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, piecesContainer);

net.minecraft.world.level.levelgen.structure.structures.DesertPyramidStructure#DesertPyramidStructure(Structure.StructureSettings)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/DesertPyramidStructure.java:28
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ DesertPyramidStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Structure.StructureSettings structureSettings

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
DesertPyramidStructure instance = new DesertPyramidStructure(structureSettings);

net.minecraft.world.level.levelgen.structure.structures.DesertPyramidStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/DesertPyramidStructure.java:74
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ DesertPyramidStructure

ทำงานยังไง

คืนค่า: StructureType.DESERT_PYRAMID.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

DesertPyramidStructure instance = ...;
StructureType<?> result = instance.type();

EndCityPieces

  • Full name: net.minecraft.world.level.levelgen.structure.structures.EndCityPieces
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/EndCityPieces.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.levelgen.structure.structures.EndCityPieces#startHouseTower(StructureTemplateManager,BlockPos,Rotation,List<StructurePiece>,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/EndCityPieces.java:280
  • Modifiers: public static
  • Return: void

คืออะไร

เริ่ม House Tower

ทำงานยังไง

เรียกต่อ: init(), addHelper(), EndCityPiece(), addPiece(), recursiveChildren(). สร้างออบเจ็กต์: EndCityPieces.EndCityPiece, BlockPos.

Parameters

  • StructureTemplateManager structureTemplateManager
  • BlockPos blockPos
  • Rotation rotation
  • List<StructurePiece> list
  • RandomSource randomSource

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
List<StructurePiece> list = ...;
RandomSource randomSource = ...;
EndCityPieces.startHouseTower(structureTemplateManager, blockPos, rotation, list, randomSource);

EndCityPieces$EndCityPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.EndCityPieces$EndCityPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/EndCityPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: TemplateStructurePiece

net.minecraft.world.level.levelgen.structure.structures.EndCityPieces$EndCityPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/EndCityPieces.java:363
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putString(), getRotation(), name(), putBoolean(), getProcessors(), get().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.EndCityPieces$EndCityPiece#EndCityPiece(StructureTemplateManager,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/EndCityPieces.java:340
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ EndCityPieces.EndCityPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: makeSettings(), getBoolean(), valueOf(), getString().

Parameters

  • StructureTemplateManager structureTemplateManager
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
CompoundTag compoundTag = ...;
EndCityPieces.EndCityPiece instance = new EndCityPieces.EndCityPiece(structureTemplateManager, compoundTag);

net.minecraft.world.level.levelgen.structure.structures.EndCityPieces$EndCityPiece#EndCityPiece(StructureTemplateManager,String,BlockPos,Rotation,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/EndCityPieces.java:336
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ EndCityPieces.EndCityPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: makeResourceLocation(), makeSettings().

Parameters

  • StructureTemplateManager structureTemplateManager
  • String string
  • BlockPos blockPos
  • Rotation rotation
  • boolean bl

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
EndCityPieces.EndCityPiece instance = new EndCityPieces.EndCityPiece(structureTemplateManager, "value", blockPos, rotation, true);

net.minecraft.world.level.levelgen.structure.structures.EndCityPieces$EndCityPiece#handleDataMarker(String,BlockPos,ServerLevelAccessor,RandomSource,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/EndCityPieces.java:370
  • Modifiers: protected
  • Return: void

คืออะไร

จัดการ Data Marker

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: startsWith(), below(), isInside(), setBlockEntityLootTable(), isInSpawnableBounds(), create(), getLevel(), setPos(). สร้างออบเจ็กต์: ItemFrame, ItemStack.

Parameters

  • String string
  • BlockPos blockPos
  • ServerLevelAccessor serverLevelAccessor
  • RandomSource randomSource
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerLevelAccessor serverLevelAccessor = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
@Override
protected void handleDataMarker(String string, BlockPos blockPos, ServerLevelAccessor serverLevelAccessor, RandomSource randomSource, BoundingBox boundingBox) {
    super.handleDataMarker(string, blockPos, serverLevelAccessor, randomSource, boundingBox);
}

net.minecraft.world.level.levelgen.structure.structures.EndCityPieces$EndCityPiece#makeTemplateLocation()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/EndCityPieces.java:354
  • Modifiers: protected
  • Return: ResourceLocation

คืออะไร

สร้าง Template Location

ทำงานยังไง

เรียกต่อ: makeResourceLocation(). คืนค่า: makeResourceLocation(this.templateName).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected ResourceLocation makeTemplateLocation() {
    return super.makeTemplateLocation();
}

EndCityStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.EndCityStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/EndCityStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.EndCityStructure#EndCityStructure(Structure.StructureSettings)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/EndCityStructure.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ EndCityStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Structure.StructureSettings structureSettings

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
EndCityStructure instance = new EndCityStructure(structureSettings);

net.minecraft.world.level.levelgen.structure.structures.EndCityStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/EndCityStructure.java:21
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

เรียกต่อ: getRandom(), random(), getLowestYIn5by5BoxOffset7Blocks(), getY(), empty(), of(), GenerationStub(), generatePieces(). สร้างออบเจ็กต์: Structure.GenerationStub.

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

EndCityStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.EndCityStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/EndCityStructure.java:38
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ EndCityStructure

ทำงานยังไง

คืนค่า: StructureType.END_CITY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

EndCityStructure instance = ...;
StructureType<?> result = instance.type();

IglooPieces

  • Full name: net.minecraft.world.level.levelgen.structure.structures.IglooPieces
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/IglooPieces.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.levelgen.structure.structures.IglooPieces#addPieces(StructureTemplateManager,BlockPos,Rotation,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/IglooPieces.java:45
  • Modifiers: public static
  • Return: void

คืออะไร

เพิ่ม Pieces

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: nextDouble(), nextInt(), addPiece(), IglooPiece(). สร้างออบเจ็กต์: IglooPieces.IglooPiece.

Parameters

  • StructureTemplateManager structureTemplateManager
  • BlockPos blockPos
  • Rotation rotation
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
IglooPieces.addPieces(structureTemplateManager, blockPos, rotation, structurePieceAccessor, randomSource);

IglooPieces$IglooPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.IglooPieces$IglooPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/IglooPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: TemplateStructurePiece

net.minecraft.world.level.levelgen.structure.structures.IglooPieces$IglooPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/IglooPieces.java:99
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putString(), getRotation(), name().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.IglooPieces$IglooPiece#handleDataMarker(String,BlockPos,ServerLevelAccessor,RandomSource,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/IglooPieces.java:105
  • Modifiers: protected
  • Return: void

คืออะไร

จัดการ Data Marker

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), setBlock(), defaultBlockState(), getBlockEntity(), below(), setLootTable(), nextLong().

Parameters

  • String string
  • BlockPos blockPos
  • ServerLevelAccessor serverLevelAccessor
  • RandomSource randomSource
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerLevelAccessor serverLevelAccessor = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
@Override
protected void handleDataMarker(String string, BlockPos blockPos, ServerLevelAccessor serverLevelAccessor, RandomSource randomSource, BoundingBox boundingBox) {
    super.handleDataMarker(string, blockPos, serverLevelAccessor, randomSource, boundingBox);
}

net.minecraft.world.level.levelgen.structure.structures.IglooPieces$IglooPiece#IglooPiece(StructureTemplateManager,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/IglooPieces.java:77
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ IglooPieces.IglooPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: makeSettings(), valueOf(), getString().

Parameters

  • StructureTemplateManager structureTemplateManager
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
CompoundTag compoundTag = ...;
IglooPieces.IglooPiece instance = new IglooPieces.IglooPiece(structureTemplateManager, compoundTag);

net.minecraft.world.level.levelgen.structure.structures.IglooPieces$IglooPiece#IglooPiece(StructureTemplateManager,ResourceLocation,BlockPos,Rotation,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/IglooPieces.java:65
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ IglooPieces.IglooPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: toString(), makeSettings(), makePosition().

Parameters

  • StructureTemplateManager structureTemplateManager
  • ResourceLocation resourceLocation
  • BlockPos blockPos
  • Rotation rotation
  • int i

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
ResourceLocation resourceLocation = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
IglooPieces.IglooPiece instance = new IglooPieces.IglooPiece(structureTemplateManager, resourceLocation, blockPos, rotation, 0);

net.minecraft.world.level.levelgen.structure.structures.IglooPieces$IglooPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/IglooPieces.java:116
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ IglooPieces$IglooPiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: templatePosition. เรียกต่อ: parse(), makeSettings(), getRotation(), get(), offset(), calculateRelativePosition(), getX(), getZ(). สร้างออบเจ็กต์: BlockPos.

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

IglooPieces.IglooPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

IglooStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.IglooStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/IglooStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.IglooStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/IglooStructure.java:21
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

เรียกต่อ: onTopOfChunkCenter(), generatePieces().

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

IglooStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.IglooStructure#IglooStructure(Structure.StructureSettings)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/IglooStructure.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ IglooStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Structure.StructureSettings structureSettings

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
IglooStructure instance = new IglooStructure(structureSettings);

net.minecraft.world.level.levelgen.structure.structures.IglooStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/IglooStructure.java:36
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ IglooStructure

ทำงานยังไง

คืนค่า: StructureType.IGLOO.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

IglooStructure instance = ...;
StructureType<?> result = instance.type();

JigsawStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.JigsawStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/JigsawStructure.java
  • Type: class
  • Modifiers: public final
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.JigsawStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/JigsawStructure.java:107
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

เรียกต่อ: chunkPos(), sample(), random(), chunkGenerator(), heightAccessor(), getMinBlockX(), getMinBlockZ(), addPieces(). สร้างออบเจ็กต์: WorldGenerationContext, BlockPos.

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

JigsawStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.JigsawStructure#JigsawStructure(Structure.StructureSettings,Holder<StructureTemplatePool>,int,HeightProvider,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/JigsawStructure.java:103
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ JigsawStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: empty(), of().

Parameters

  • Structure.StructureSettings structureSettings
  • Holder<StructureTemplatePool> holder
  • int i
  • HeightProvider heightProvider
  • boolean bl

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
Holder<StructureTemplatePool> holder = ...;
HeightProvider heightProvider = ...;
JigsawStructure instance = new JigsawStructure(structureSettings, holder, 0, heightProvider, true);

net.minecraft.world.level.levelgen.structure.structures.JigsawStructure#JigsawStructure(Structure.StructureSettings,Holder<StructureTemplatePool>,int,HeightProvider,boolean,Heightmap.Types)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/JigsawStructure.java:95
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ JigsawStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: empty(), of().

Parameters

  • Structure.StructureSettings structureSettings
  • Holder<StructureTemplatePool> holder
  • int i
  • HeightProvider heightProvider
  • boolean bl
  • Heightmap.Types types

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
Holder<StructureTemplatePool> holder = ...;
HeightProvider heightProvider = ...;
Heightmap.Types types = ...;
JigsawStructure instance = new JigsawStructure(structureSettings, holder, 0, heightProvider, true, types);

net.minecraft.world.level.levelgen.structure.structures.JigsawStructure#JigsawStructure(Structure.StructureSettings,Holder<StructureTemplatePool>,Optional<ResourceLocation>,int,HeightProvider,boolean,Optional<Heightmap.Types>,int,List<PoolAliasBinding>,DimensionPadding,LiquidSettings)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/JigsawStructure.java:69
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ JigsawStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: startPool, startJigsawName, maxDepth, startHeight, useExpansionHack, projectStartToHeightmap.

Parameters

  • Structure.StructureSettings structureSettings
  • Holder<StructureTemplatePool> holder
  • Optional<ResourceLocation> optional
  • int i
  • HeightProvider heightProvider
  • boolean bl
  • Optional<Heightmap.Types> optional2
  • int j
  • List<PoolAliasBinding> list
  • DimensionPadding dimensionPadding
  • LiquidSettings liquidSettings

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
Holder<StructureTemplatePool> holder = ...;
Optional<ResourceLocation> optional = ...;
HeightProvider heightProvider = ...;
Optional<Heightmap.Types> optional2 = ...;
List<PoolAliasBinding> list = ...;
DimensionPadding dimensionPadding = ...;
LiquidSettings liquidSettings = ...;
JigsawStructure instance = new JigsawStructure(structureSettings, holder, optional, 0, heightProvider, true, optional2, 0, list, dimensionPadding, liquidSettings);

net.minecraft.world.level.levelgen.structure.structures.JigsawStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/JigsawStructure.java:128
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ JigsawStructure

ทำงานยังไง

คืนค่า: StructureType.JIGSAW.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

JigsawStructure instance = ...;
StructureType<?> result = instance.type();

JungleTemplePiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.JungleTemplePiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/JungleTemplePiece.java
  • Type: class
  • Modifiers: public
  • Extends: ScatteredFeaturePiece

net.minecraft.world.level.levelgen.structure.structures.JungleTemplePiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/JungleTemplePiece.java:51
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.JungleTemplePiece#JungleTemplePiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/JungleTemplePiece.java:43
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ JungleTemplePiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: placedMainChest, placedHiddenChest, placedTrap1, placedTrap2. เรียกต่อ: getBoolean().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
JungleTemplePiece instance = new JungleTemplePiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.JungleTemplePiece#JungleTemplePiece(RandomSource,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/JungleTemplePiece.java:39
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ JungleTemplePiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getRandomHorizontalDirection().

Parameters

  • RandomSource randomSource
  • int i
  • int j

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
JungleTemplePiece instance = new JungleTemplePiece(randomSource, 0, 0);

net.minecraft.world.level.levelgen.structure.structures.JungleTemplePiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/JungleTemplePiece.java:60
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ JungleTemplePiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: placedTrap1, placedTrap2, placedMainChest, placedHiddenChest. เรียกต่อ: updateAverageGroundHeight(), generateBox(), generateAirBox(), placeBlock(), defaultBlockState(), setValue(), createDispenser(), createChest().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

JungleTemplePiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

JungleTempleStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.JungleTempleStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/JungleTempleStructure.java
  • Type: class
  • Modifiers: public
  • Extends: SinglePieceStructure

net.minecraft.world.level.levelgen.structure.structures.JungleTempleStructure#JungleTempleStructure(Structure.StructureSettings)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/JungleTempleStructure.java:11
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ JungleTempleStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Structure.StructureSettings structureSettings

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
JungleTempleStructure instance = new JungleTempleStructure(structureSettings);

net.minecraft.world.level.levelgen.structure.structures.JungleTempleStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/JungleTempleStructure.java:15
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ JungleTempleStructure

ทำงานยังไง

คืนค่า: StructureType.JUNGLE_TEMPLE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

JungleTempleStructure instance = ...;
StructureType<?> result = instance.type();

MineshaftPieces$MineShaftCorridor

  • Full name: net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCorridor
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: MineshaftPieces.MineShaftPiece

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCorridor#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:118
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean(), putInt().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCorridor#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:159
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: getGenDepth(), nextInt(), getOrientation(), generateAndAddPiece(), minX(), minY(), minZ(), maxX().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

MineshaftPieces.MineShaftCorridor instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCorridor#createChest(WorldGenLevel,BoundingBox,RandomSource,int,int,int,ResourceKey<LootTable>)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:344
  • Modifiers: protected
  • Return: boolean

คืออะไร

สร้าง Chest

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getWorldPos(), isInside(), getBlockState(), isAir(), below(), defaultBlockState(), setValue(), nextBoolean(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • WorldGenLevel worldGenLevel
  • BoundingBox boundingBox
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • ResourceKey<LootTable> resourceKey

ตัวอย่างใช้งาน

WorldGenLevel worldGenLevel = ...;
BoundingBox boundingBox = ...;
RandomSource randomSource = ...;
ResourceKey<LootTable> resourceKey = ...;
@Override
protected boolean createChest(WorldGenLevel worldGenLevel, BoundingBox boundingBox, RandomSource randomSource, int i, int j, int k, ResourceKey<LootTable> resourceKey) {
    return super.createChest(worldGenLevel, boundingBox, randomSource, i, j, k, resourceKey);
}

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCorridor#fillColumnDown(WorldGenLevel,BlockState,int,int,int,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:460
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ fillColumnDown ตาม implementation ของ MineshaftPieces$MineShaftCorridor

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getWorldPos(), isInside(), getY(), isReplaceableByStructures(), getBlockState(), getMinY(), move(), canPlaceColumnOnTopOf().

Parameters

  • WorldGenLevel worldGenLevel
  • BlockState blockState
  • int i
  • int j
  • int k
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

WorldGenLevel worldGenLevel = ...;
BlockState blockState = ...;
BoundingBox boundingBox = ...;
@Override
protected void fillColumnDown(WorldGenLevel worldGenLevel, BlockState blockState, int i, int j, int k, BoundingBox boundingBox) {
    super.fillColumnDown(worldGenLevel, blockState, i, j, k, boundingBox);
}

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCorridor#fillPillarDownOrChainUp(WorldGenLevel,BlockState,int,int,int,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:479
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ fillPillarDownOrChainUp ตาม implementation ของ MineshaftPieces$MineShaftCorridor

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getWorldPos(), isInside(), getY(), setY(), getBlockState(), isReplaceableByStructures(), is(), canPlaceColumnOnTopOf().

Parameters

  • WorldGenLevel worldGenLevel
  • BlockState blockState
  • int i
  • int j
  • int k
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

WorldGenLevel worldGenLevel = ...;
BlockState blockState = ...;
BoundingBox boundingBox = ...;
@Override
protected void fillPillarDownOrChainUp(WorldGenLevel worldGenLevel, BlockState blockState, int i, int j, int k, BoundingBox boundingBox) {
    super.fillPillarDownOrChainUp(worldGenLevel, blockState, i, j, k, boundingBox);
}

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCorridor#findCorridorSize(StructurePieceAccessor,RandomSource,int,int,int,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:139
  • Modifiers: public static
  • Return: BoundingBox

คืออะไร

ค้นหา Corridor Size

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: nextInt(), move(), findCollisionPiece(). สร้างออบเจ็กต์: BoundingBox. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
BoundingBox result = MineshaftPieces.MineShaftCorridor.findCorridorSize(structurePieceAccessor, randomSource, 0, 0, 0, direction);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCorridor#MineShaftCorridor(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:110
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MineshaftPieces.MineShaftCorridor ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: hasRails, spiderCorridor, hasPlacedSpider, numSections. เรียกต่อ: getBoolean(), getInt().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
MineshaftPieces.MineShaftCorridor instance = new MineshaftPieces.MineShaftCorridor(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCorridor#MineShaftCorridor(int,RandomSource,BoundingBox,Direction,MineshaftStructure.Type)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:127
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MineshaftPieces.MineShaftCorridor ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: hasRails, spiderCorridor, numSections. เรียกต่อ: setOrientation(), nextInt(), getOrientation(), getAxis(), getZSpan(), getXSpan().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction
  • MineshaftStructure.Type type

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
MineshaftStructure.Type type = ...;
MineshaftPieces.MineShaftCorridor instance = new MineshaftPieces.MineShaftCorridor(0, randomSource, boundingBox, direction, type);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCorridor#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:365
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ MineshaftPieces$MineShaftCorridor

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: hasPlacedSpider. เรียกต่อ: isInInvalidLocation(), getPlanksState(), generateBox(), generateMaybeBox(), defaultBlockState(), placeSupport(), maybePlaceCobWeb(), nextInt().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

MineshaftPieces.MineShaftCorridor instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

MineshaftPieces$MineShaftCrossing

  • Full name: net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCrossing
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: MineshaftPieces.MineShaftPiece

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCrossing#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:588
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean(), putInt(), get2DDataValue().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCrossing#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:619
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. เรียกต่อ: getGenDepth(), generateAndAddPiece(), minX(), minY(), minZ(), maxX(), maxZ(), nextBoolean().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

MineshaftPieces.MineShaftCrossing instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCrossing#findCrossing(StructurePieceAccessor,RandomSource,int,int,int,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:601
  • Modifiers: public static
  • Return: BoundingBox

คืออะไร

ค้นหา Crossing

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. เรียกต่อ: nextInt(), move(), findCollisionPiece(). สร้างออบเจ็กต์: BoundingBox. คืนค่า: structurePieceAccessor.findCollisionPiece(boundingBox) != null ? null : boundingBox.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
BoundingBox result = MineshaftPieces.MineShaftCrossing.findCrossing(structurePieceAccessor, randomSource, 0, 0, 0, direction);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCrossing#MineShaftCrossing(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:582
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MineshaftPieces.MineShaftCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isTwoFloored, direction. เรียกต่อ: getBoolean(), from2DDataValue(), getInt().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
MineshaftPieces.MineShaftCrossing instance = new MineshaftPieces.MineShaftCrossing(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCrossing#MineShaftCrossing(int,BoundingBox,Direction,MineshaftStructure.Type)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:595
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MineshaftPieces.MineShaftCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: direction, isTwoFloored. เรียกต่อ: getYSpan().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction
  • MineshaftStructure.Type type

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
MineshaftStructure.Type type = ...;
MineshaftPieces.MineShaftCrossing instance = new MineshaftPieces.MineShaftCrossing(0, boundingBox, direction, type);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftCrossing#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:808
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ MineshaftPieces$MineShaftCrossing

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isInInvalidLocation(), getPlanksState(), generateBox(), minX(), minY(), minZ(), maxX(), maxZ().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

MineshaftPieces.MineShaftCrossing instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

MineshaftPieces$MineShaftRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: MineshaftPieces.MineShaftPiece

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftRoom#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:1255
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: listOf(), encodeStart(), resultOrPartial(), ifPresent(), put().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftRoom#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:1065
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getGenDepth(), getYSpan(), getXSpan(), nextInt(), generateAndAddPiece(), minX(), minY(), minZ(). สร้างออบเจ็กต์: BoundingBox.

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

MineshaftPieces.MineShaftRoom instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftRoom#MineShaftRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:1056
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MineshaftPieces.MineShaftRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: listOf(), parse(), getList(), resultOrPartial(), ifPresent().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
MineshaftPieces.MineShaftRoom instance = new MineshaftPieces.MineShaftRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftRoom#MineShaftRoom(int,RandomSource,int,int,MineshaftStructure.Type)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:1046
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MineshaftPieces.MineShaftRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: type. เรียกต่อ: nextInt(). สร้างออบเจ็กต์: BoundingBox.

Parameters

  • int i
  • RandomSource randomSource
  • int j
  • int k
  • MineshaftStructure.Type type

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
MineshaftStructure.Type type = ...;
MineshaftPieces.MineShaftRoom instance = new MineshaftPieces.MineShaftRoom(0, randomSource, 0, 0, type);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftRoom#move(int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:1246
  • Modifiers: public
  • Return: void

คืออะไร

เคลื่อนที่ move

ทำงานยังไง

มีการวนลูป.

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

MineshaftPieces.MineShaftRoom instance = ...;
instance.move(0, 0, 0);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:1190
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ MineshaftPieces$MineShaftRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isInInvalidLocation(), generateBox(), minX(), minY(), minZ(), maxX(), min(), maxY().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

MineshaftPieces.MineShaftRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

MineshaftPieces$MineShaftStairs

  • Full name: net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftStairs
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: MineshaftPieces.MineShaftPiece

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftStairs#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:1288
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. เรียกต่อ: getGenDepth(), getOrientation(), generateAndAddPiece(), minX(), minY(), minZ(), maxZ(), maxX().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

MineshaftPieces.MineShaftStairs instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftStairs#findStairs(StructurePieceAccessor,RandomSource,int,int,int,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:1276
  • Modifiers: public static
  • Return: BoundingBox

คืออะไร

ค้นหา Stairs

ทำงานยังไง

แยกกรณีด้วย switch. เรียกต่อ: move(), findCollisionPiece(). สร้างออบเจ็กต์: BoundingBox. คืนค่า: structurePieceAccessor.findCollisionPiece(boundingBox) != null ? null : boundingBox.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
BoundingBox result = MineshaftPieces.MineShaftStairs.findStairs(structurePieceAccessor, randomSource, 0, 0, 0, direction);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftStairs#MineShaftStairs(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:1272
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MineshaftPieces.MineShaftStairs ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
MineshaftPieces.MineShaftStairs instance = new MineshaftPieces.MineShaftStairs(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftStairs#MineShaftStairs(int,BoundingBox,Direction,MineshaftStructure.Type)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:1267
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MineshaftPieces.MineShaftStairs ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction
  • MineshaftStructure.Type type

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
MineshaftStructure.Type type = ...;
MineshaftPieces.MineShaftStairs instance = new MineshaftPieces.MineShaftStairs(0, boundingBox, direction, type);

net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces$MineShaftStairs#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftPieces.java:1318
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ MineshaftPieces$MineShaftStairs

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isInInvalidLocation(), generateBox().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

MineshaftPieces.MineShaftStairs instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

MineshaftStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.MineshaftStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/MineshaftStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.MineshaftStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftStructure.java:38
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

เรียกต่อ: random(), nextDouble(), chunkPos(), getMiddleBlockX(), getMinBlockZ(), generatePiecesAndAdjust(), of(), GenerationStub(). สร้างออบเจ็กต์: BlockPos, StructurePiecesBuilder, Structure.GenerationStub. คืนค่า: Optional.of(new Structure.GenerationStub(blockPos.offset(0, i, 0), Either.right(structurePiecesBuilder))).

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

MineshaftStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.MineshaftStructure#MineshaftStructure(Structure.StructureSettings,MineshaftStructure.Type)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftStructure.java:33
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MineshaftStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: type.

Parameters

  • Structure.StructureSettings structureSettings
  • MineshaftStructure.Type type

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
MineshaftStructure.Type type = ...;
MineshaftStructure instance = new MineshaftStructure(structureSettings, type);

net.minecraft.world.level.levelgen.structure.structures.MineshaftStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftStructure.java:70
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ MineshaftStructure

ทำงานยังไง

คืนค่า: StructureType.MINESHAFT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MineshaftStructure instance = ...;
StructureType<?> result = instance.type();

MineshaftStructure$Type

  • Full name: net.minecraft.world.level.levelgen.structure.structures.MineshaftStructure$Type
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/MineshaftStructure.java
  • Type: enum
  • Modifiers: public
  • Implements: StringRepresentable

net.minecraft.world.level.levelgen.structure.structures.MineshaftStructure$Type#byId(int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftStructure.java:97
  • Modifiers: public static
  • Return: MineshaftStructure.Type

คืออะไร

ดำเนินการ byId ตาม implementation ของ MineshaftStructure$Type

ทำงานยังไง

เรียกต่อ: apply(). คืนค่า: BY_ID.apply(i).

Parameters

  • int i

ตัวอย่างใช้งาน

MineshaftStructure.Type result = MineshaftStructure.Type.byId(0);

net.minecraft.world.level.levelgen.structure.structures.MineshaftStructure$Type#getFenceState()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftStructure.java:109
  • Modifiers: public
  • Return: BlockState

คืออะไร

อ่านค่า Fence State

ทำงานยังไง

คืนค่า: this.fenceState.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MineshaftStructure.Type instance = ...;
BlockState result = instance.getFenceState();

net.minecraft.world.level.levelgen.structure.structures.MineshaftStructure$Type#getName()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftStructure.java:93
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MineshaftStructure.Type instance = ...;
String result = instance.getName();

net.minecraft.world.level.levelgen.structure.structures.MineshaftStructure$Type#getPlanksState()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftStructure.java:105
  • Modifiers: public
  • Return: BlockState

คืออะไร

อ่านค่า Planks State

ทำงานยังไง

คืนค่า: this.planksState.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MineshaftStructure.Type instance = ...;
BlockState result = instance.getPlanksState();

net.minecraft.world.level.levelgen.structure.structures.MineshaftStructure$Type#getSerializedName()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftStructure.java:113
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Serialized Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MineshaftStructure.Type instance = ...;
String result = instance.getSerializedName();

net.minecraft.world.level.levelgen.structure.structures.MineshaftStructure$Type#getWoodState()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/MineshaftStructure.java:101
  • Modifiers: public
  • Return: BlockState

คืออะไร

อ่านค่า Wood State

ทำงานยังไง

คืนค่า: this.woodState.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MineshaftStructure.Type instance = ...;
BlockState result = instance.getWoodState();

NetherFortressPieces$BridgeCrossing

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeCrossing
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeCrossing#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:116
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateChildForward(), generateChildLeft(), generateChildRight().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.BridgeCrossing instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeCrossing#BridgeCrossing(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:112
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.BridgeCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.BridgeCrossing instance = new NetherFortressPieces.BridgeCrossing(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeCrossing#BridgeCrossing(int,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:98
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.BridgeCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.BridgeCrossing instance = new NetherFortressPieces.BridgeCrossing(0, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeCrossing#BridgeCrossing(int,int,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:103
  • Modifiers: protected
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.BridgeCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: makeBoundingBox(), setOrientation().

Parameters

  • int i
  • int j
  • Direction direction

ตัวอย่างใช้งาน

Direction direction = ...;
NetherFortressPieces.BridgeCrossing instance = new NetherFortressPieces.BridgeCrossing(0, 0, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeCrossing#BridgeCrossing(StructurePieceType,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:108
  • Modifiers: protected
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.BridgeCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • StructurePieceType structurePieceType
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceType structurePieceType = ...;
CompoundTag compoundTag = ...;
NetherFortressPieces.BridgeCrossing instance = new NetherFortressPieces.BridgeCrossing(structurePieceType, compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeCrossing#createPiece(StructurePieceAccessor,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:123
  • Modifiers: public static
  • Return: NetherFortressPieces.BridgeCrossing

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), BridgeCrossing(). สร้างออบเจ็กต์: NetherFortressPieces.BridgeCrossing.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
Direction direction = ...;
NetherFortressPieces.BridgeCrossing result = NetherFortressPieces.BridgeCrossing.createPiece(structurePieceAccessor, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeCrossing#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:130
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$BridgeCrossing

ทำงานยังไง

มีการวนลูป. เรียกต่อ: generateBox(), defaultBlockState(), fillColumnDown().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.BridgeCrossing instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$BridgeEndFiller

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeEndFiller
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeEndFiller#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:204
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putInt().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeEndFiller#BridgeEndFiller(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:190
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.BridgeEndFiller ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: selfSeed. เรียกต่อ: getInt().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.BridgeEndFiller instance = new NetherFortressPieces.BridgeEndFiller(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeEndFiller#BridgeEndFiller(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:184
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.BridgeEndFiller ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: selfSeed. เรียกต่อ: setOrientation(), nextInt().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.BridgeEndFiller instance = new NetherFortressPieces.BridgeEndFiller(0, randomSource, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeEndFiller#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:195
  • Modifiers: public static
  • Return: NetherFortressPieces.BridgeEndFiller

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), BridgeEndFiller(). สร้างออบเจ็กต์: NetherFortressPieces.BridgeEndFiller.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
NetherFortressPieces.BridgeEndFiller result = NetherFortressPieces.BridgeEndFiller.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeEndFiller#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:210
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$BridgeEndFiller

ทำงานยังไง

มีการวนลูป. เรียกต่อ: create(), nextInt(), generateBox(), defaultBlockState().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.BridgeEndFiller instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$BridgeStraight

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeStraight
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeStraight#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:262
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateChildForward().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.BridgeStraight instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeStraight#BridgeStraight(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:258
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.BridgeStraight ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.BridgeStraight instance = new NetherFortressPieces.BridgeStraight(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeStraight#BridgeStraight(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:253
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.BridgeStraight ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.BridgeStraight instance = new NetherFortressPieces.BridgeStraight(0, randomSource, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeStraight#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:267
  • Modifiers: public static
  • Return: NetherFortressPieces.BridgeStraight

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), BridgeStraight(). สร้างออบเจ็กต์: NetherFortressPieces.BridgeStraight.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
NetherFortressPieces.BridgeStraight result = NetherFortressPieces.BridgeStraight.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$BridgeStraight#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:276
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$BridgeStraight

ทำงานยังไง

มีการวนลูป. เรียกต่อ: generateBox(), defaultBlockState(), fillColumnDown(), setValue().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.BridgeStraight instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$CastleCorridorStairsPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorStairsPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorStairsPiece#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:330
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateChildForward().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.CastleCorridorStairsPiece instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorStairsPiece#CastleCorridorStairsPiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:326
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleCorridorStairsPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.CastleCorridorStairsPiece instance = new NetherFortressPieces.CastleCorridorStairsPiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorStairsPiece#CastleCorridorStairsPiece(int,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:321
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleCorridorStairsPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.CastleCorridorStairsPiece instance = new NetherFortressPieces.CastleCorridorStairsPiece(0, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorStairsPiece#createPiece(StructurePieceAccessor,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:335
  • Modifiers: public static
  • Return: NetherFortressPieces.CastleCorridorStairsPiece

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), CastleCorridorStairsPiece(). สร้างออบเจ็กต์: NetherFortressPieces.CastleCorridorStairsPiece.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
Direction direction = ...;
NetherFortressPieces.CastleCorridorStairsPiece result = NetherFortressPieces.CastleCorridorStairsPiece.createPiece(structurePieceAccessor, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorStairsPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:344
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$CastleCorridorStairsPiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: defaultBlockState(), setValue(), max(), min(), generateBox(), placeBlock(), fillColumnDown().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.CastleCorridorStairsPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$CastleCorridorTBalconyPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorTBalconyPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorTBalconyPiece#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:402
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOrientation(), generateChildLeft(), nextInt(), generateChildRight().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.CastleCorridorTBalconyPiece instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorTBalconyPiece#CastleCorridorTBalconyPiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:398
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleCorridorTBalconyPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.CastleCorridorTBalconyPiece instance = new NetherFortressPieces.CastleCorridorTBalconyPiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorTBalconyPiece#CastleCorridorTBalconyPiece(int,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:393
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleCorridorTBalconyPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.CastleCorridorTBalconyPiece instance = new NetherFortressPieces.CastleCorridorTBalconyPiece(0, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorTBalconyPiece#createPiece(StructurePieceAccessor,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:414
  • Modifiers: public static
  • Return: NetherFortressPieces.CastleCorridorTBalconyPiece

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), CastleCorridorTBalconyPiece(). สร้างออบเจ็กต์: NetherFortressPieces.CastleCorridorTBalconyPiece.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
Direction direction = ...;
NetherFortressPieces.CastleCorridorTBalconyPiece result = NetherFortressPieces.CastleCorridorTBalconyPiece.createPiece(structurePieceAccessor, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleCorridorTBalconyPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:423
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$CastleCorridorTBalconyPiece

ทำงานยังไง

มีการวนลูป. เรียกต่อ: defaultBlockState(), setValue(), generateBox(), placeBlock(), fillColumnDown().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.CastleCorridorTBalconyPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$CastleEntrance

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleEntrance
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleEntrance#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:483
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateChildForward().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.CastleEntrance instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleEntrance#CastleEntrance(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:479
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleEntrance ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.CastleEntrance instance = new NetherFortressPieces.CastleEntrance(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleEntrance#CastleEntrance(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:474
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleEntrance ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.CastleEntrance instance = new NetherFortressPieces.CastleEntrance(0, randomSource, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleEntrance#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:488
  • Modifiers: public static
  • Return: NetherFortressPieces.CastleEntrance

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), CastleEntrance(). สร้างออบเจ็กต์: NetherFortressPieces.CastleEntrance.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
NetherFortressPieces.CastleEntrance result = NetherFortressPieces.CastleEntrance.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleEntrance#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:497
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$CastleEntrance

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: generateBox(), defaultBlockState(), setValue(), placeBlock(), fillColumnDown(), getWorldPos(), isInside(), scheduleTick().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.CastleEntrance instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$CastleSmallCorridorCrossingPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorCrossingPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorCrossingPiece#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:609
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateChildForward(), generateChildLeft(), generateChildRight().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.CastleSmallCorridorCrossingPiece instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorCrossingPiece#CastleSmallCorridorCrossingPiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:605
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleSmallCorridorCrossingPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.CastleSmallCorridorCrossingPiece instance = new NetherFortressPieces.CastleSmallCorridorCrossingPiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorCrossingPiece#CastleSmallCorridorCrossingPiece(int,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:600
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleSmallCorridorCrossingPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.CastleSmallCorridorCrossingPiece instance = new NetherFortressPieces.CastleSmallCorridorCrossingPiece(0, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorCrossingPiece#createPiece(StructurePieceAccessor,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:616
  • Modifiers: public static
  • Return: NetherFortressPieces.CastleSmallCorridorCrossingPiece

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), CastleSmallCorridorCrossingPiece(). สร้างออบเจ็กต์: NetherFortressPieces.CastleSmallCorridorCrossingPiece.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
Direction direction = ...;
NetherFortressPieces.CastleSmallCorridorCrossingPiece result = NetherFortressPieces.CastleSmallCorridorCrossingPiece.createPiece(structurePieceAccessor, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorCrossingPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:625
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$CastleSmallCorridorCrossingPiece

ทำงานยังไง

มีการวนลูป. เรียกต่อ: generateBox(), defaultBlockState(), fillColumnDown().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.CastleSmallCorridorCrossingPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$CastleSmallCorridorLeftTurnPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorLeftTurnPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorLeftTurnPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:668
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorLeftTurnPiece#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:674
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateChildLeft().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.CastleSmallCorridorLeftTurnPiece instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorLeftTurnPiece#CastleSmallCorridorLeftTurnPiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:663
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleSmallCorridorLeftTurnPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isNeedingChest. เรียกต่อ: getBoolean().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece instance = new NetherFortressPieces.CastleSmallCorridorLeftTurnPiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorLeftTurnPiece#CastleSmallCorridorLeftTurnPiece(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:657
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleSmallCorridorLeftTurnPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isNeedingChest. เรียกต่อ: setOrientation(), nextInt().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece instance = new NetherFortressPieces.CastleSmallCorridorLeftTurnPiece(0, randomSource, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorLeftTurnPiece#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:679
  • Modifiers: public static
  • Return: NetherFortressPieces.CastleSmallCorridorLeftTurnPiece

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), CastleSmallCorridorLeftTurnPiece(). สร้างออบเจ็กต์: NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece result = NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorLeftTurnPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:688
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$CastleSmallCorridorLeftTurnPiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: isNeedingChest. เรียกต่อ: generateBox(), defaultBlockState(), setValue(), isInside(), getWorldPos(), createChest(), fillColumnDown().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.CastleSmallCorridorLeftTurnPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$CastleSmallCorridorPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorPiece#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:738
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateChildForward().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.CastleSmallCorridorPiece instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorPiece#CastleSmallCorridorPiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:734
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleSmallCorridorPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.CastleSmallCorridorPiece instance = new NetherFortressPieces.CastleSmallCorridorPiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorPiece#CastleSmallCorridorPiece(int,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:729
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleSmallCorridorPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.CastleSmallCorridorPiece instance = new NetherFortressPieces.CastleSmallCorridorPiece(0, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorPiece#createPiece(StructurePieceAccessor,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:743
  • Modifiers: public static
  • Return: NetherFortressPieces.CastleSmallCorridorPiece

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), CastleSmallCorridorPiece(). สร้างออบเจ็กต์: NetherFortressPieces.CastleSmallCorridorPiece.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
Direction direction = ...;
NetherFortressPieces.CastleSmallCorridorPiece result = NetherFortressPieces.CastleSmallCorridorPiece.createPiece(structurePieceAccessor, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:752
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$CastleSmallCorridorPiece

ทำงานยังไง

มีการวนลูป. เรียกต่อ: generateBox(), defaultBlockState(), setValue(), fillColumnDown().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.CastleSmallCorridorPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$CastleSmallCorridorRightTurnPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorRightTurnPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorRightTurnPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:798
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorRightTurnPiece#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:804
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateChildRight().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.CastleSmallCorridorRightTurnPiece instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorRightTurnPiece#CastleSmallCorridorRightTurnPiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:793
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleSmallCorridorRightTurnPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isNeedingChest. เรียกต่อ: getBoolean().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.CastleSmallCorridorRightTurnPiece instance = new NetherFortressPieces.CastleSmallCorridorRightTurnPiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorRightTurnPiece#CastleSmallCorridorRightTurnPiece(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:787
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleSmallCorridorRightTurnPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isNeedingChest. เรียกต่อ: setOrientation(), nextInt().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.CastleSmallCorridorRightTurnPiece instance = new NetherFortressPieces.CastleSmallCorridorRightTurnPiece(0, randomSource, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorRightTurnPiece#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:809
  • Modifiers: public static
  • Return: NetherFortressPieces.CastleSmallCorridorRightTurnPiece

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), CastleSmallCorridorRightTurnPiece(). สร้างออบเจ็กต์: NetherFortressPieces.CastleSmallCorridorRightTurnPiece.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
NetherFortressPieces.CastleSmallCorridorRightTurnPiece result = NetherFortressPieces.CastleSmallCorridorRightTurnPiece.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleSmallCorridorRightTurnPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:818
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$CastleSmallCorridorRightTurnPiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: isNeedingChest. เรียกต่อ: generateBox(), defaultBlockState(), setValue(), isInside(), getWorldPos(), createChest(), fillColumnDown().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.CastleSmallCorridorRightTurnPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$CastleStalkRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleStalkRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleStalkRoom#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:868
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateChildForward().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.CastleStalkRoom instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleStalkRoom#CastleStalkRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:864
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleStalkRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.CastleStalkRoom instance = new NetherFortressPieces.CastleStalkRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleStalkRoom#CastleStalkRoom(int,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:859
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.CastleStalkRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.CastleStalkRoom instance = new NetherFortressPieces.CastleStalkRoom(0, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleStalkRoom#createPiece(StructurePieceAccessor,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:874
  • Modifiers: public static
  • Return: NetherFortressPieces.CastleStalkRoom

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), CastleStalkRoom(). สร้างออบเจ็กต์: NetherFortressPieces.CastleStalkRoom.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
Direction direction = ...;
NetherFortressPieces.CastleStalkRoom result = NetherFortressPieces.CastleStalkRoom.createPiece(structurePieceAccessor, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$CastleStalkRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:881
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$CastleStalkRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: generateBox(), defaultBlockState(), setValue(), placeBlock(), fillColumnDown().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.CastleStalkRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$MonsterThrone

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$MonsterThrone
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$MonsterThrone#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1032
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$MonsterThrone#createPiece(StructurePieceAccessor,int,int,int,int,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1038
  • Modifiers: public static
  • Return: NetherFortressPieces.MonsterThrone

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), MonsterThrone(). สร้างออบเจ็กต์: NetherFortressPieces.MonsterThrone.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • int i
  • int j
  • int k
  • int l
  • Direction direction

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
Direction direction = ...;
NetherFortressPieces.MonsterThrone result = NetherFortressPieces.MonsterThrone.createPiece(structurePieceAccessor, 0, 0, 0, 0, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$MonsterThrone#MonsterThrone(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1027
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.MonsterThrone ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: hasPlacedSpawner. เรียกต่อ: getBoolean().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.MonsterThrone instance = new NetherFortressPieces.MonsterThrone(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$MonsterThrone#MonsterThrone(int,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1022
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.MonsterThrone ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.MonsterThrone instance = new NetherFortressPieces.MonsterThrone(0, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$MonsterThrone#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1045
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$MonsterThrone

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: hasPlacedSpawner. เรียกต่อ: generateBox(), defaultBlockState(), setValue(), placeBlock(), getWorldPos(), isInside(), setBlock(), getBlockEntity().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.MonsterThrone instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFortressPieces$RoomCrossing

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$RoomCrossing
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$RoomCrossing#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1442
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateChildForward(), generateChildLeft(), generateChildRight().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.RoomCrossing instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$RoomCrossing#createPiece(StructurePieceAccessor,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1449
  • Modifiers: public static
  • Return: NetherFortressPieces.RoomCrossing

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), RoomCrossing(). สร้างออบเจ็กต์: NetherFortressPieces.RoomCrossing.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
Direction direction = ...;
NetherFortressPieces.RoomCrossing result = NetherFortressPieces.RoomCrossing.createPiece(structurePieceAccessor, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$RoomCrossing#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1456
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$RoomCrossing

ทำงานยังไง

มีการวนลูป. เรียกต่อ: generateBox(), defaultBlockState(), setValue(), fillColumnDown().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.RoomCrossing instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$RoomCrossing#RoomCrossing(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1438
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.RoomCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.RoomCrossing instance = new NetherFortressPieces.RoomCrossing(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$RoomCrossing#RoomCrossing(int,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1433
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.RoomCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.RoomCrossing instance = new NetherFortressPieces.RoomCrossing(0, boundingBox, direction);

NetherFortressPieces$StairsRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$StairsRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.NetherBridgePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$StairsRoom#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1509
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateChildRight().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

NetherFortressPieces.StairsRoom instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$StairsRoom#createPiece(StructurePieceAccessor,int,int,int,int,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1514
  • Modifiers: public static
  • Return: NetherFortressPieces.StairsRoom

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), StairsRoom(). สร้างออบเจ็กต์: NetherFortressPieces.StairsRoom.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • int i
  • int j
  • int k
  • int l
  • Direction direction

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
Direction direction = ...;
NetherFortressPieces.StairsRoom result = NetherFortressPieces.StairsRoom.createPiece(structurePieceAccessor, 0, 0, 0, 0, direction);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$StairsRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1521
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFortressPieces$StairsRoom

ทำงานยังไง

มีการวนลูป. เรียกต่อ: generateBox(), defaultBlockState(), setValue(), placeBlock(), fillColumnDown().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFortressPieces.StairsRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$StairsRoom#StairsRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1505
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.StairsRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.StairsRoom instance = new NetherFortressPieces.StairsRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$StairsRoom#StairsRoom(int,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1500
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.StairsRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
NetherFortressPieces.StairsRoom instance = new NetherFortressPieces.StairsRoom(0, boundingBox, direction);

NetherFortressPieces$StartPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$StartPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: NetherFortressPieces.BridgeCrossing

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$StartPiece#StartPiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1584
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.StartPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
NetherFortressPieces.StartPiece instance = new NetherFortressPieces.StartPiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressPieces$StartPiece#StartPiece(RandomSource,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressPieces.java:1567
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressPieces.StartPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

มีการวนลูป. แก้ state: availableBridgePieces, availableCastlePieces. เรียกต่อ: getRandomHorizontalDirection(), newArrayList(), add().

Parameters

  • RandomSource randomSource
  • int i
  • int j

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
NetherFortressPieces.StartPiece instance = new NetherFortressPieces.StartPiece(randomSource, 0, 0);

NetherFortressStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFortressStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFortressStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.NetherFortressStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressStructure.java:30
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

เรียกต่อ: chunkPos(), getMinBlockX(), getMinBlockZ(), of(), GenerationStub(), generatePieces(). สร้างออบเจ็กต์: BlockPos, Structure.GenerationStub. คืนค่า: Optional.of(new Structure.GenerationStub(blockPos, structurePiecesBuilder -> generatePieces(structurePiecesBuilder, generationContext))).

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

NetherFortressStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressStructure#NetherFortressStructure(Structure.StructureSettings)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressStructure.java:26
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFortressStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Structure.StructureSettings structureSettings

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
NetherFortressStructure instance = new NetherFortressStructure(structureSettings);

net.minecraft.world.level.levelgen.structure.structures.NetherFortressStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFortressStructure.java:54
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ NetherFortressStructure

ทำงานยังไง

คืนค่า: StructureType.FORTRESS.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NetherFortressStructure instance = ...;
StructureType<?> result = instance.type();

NetherFossilPieces

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFossilPieces
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFossilPieces.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.levelgen.structure.structures.NetherFossilPieces#addPieces(StructureTemplateManager,StructurePieceAccessor,RandomSource,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFossilPieces.java:42
  • Modifiers: public static
  • Return: void

คืออะไร

เพิ่ม Pieces

ทำงานยังไง

เรียกต่อ: getRandom(), addPiece(), NetherFossilPiece(). สร้างออบเจ็กต์: NetherFossilPieces.NetherFossilPiece.

Parameters

  • StructureTemplateManager structureTemplateManager
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • BlockPos blockPos

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
NetherFossilPieces.addPieces(structureTemplateManager, structurePieceAccessor, randomSource, blockPos);

NetherFossilPieces$NetherFossilPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFossilPieces$NetherFossilPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFossilPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: TemplateStructurePiece

net.minecraft.world.level.levelgen.structure.structures.NetherFossilPieces$NetherFossilPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFossilPieces.java:64
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putString(), getRotation(), name().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.NetherFossilPieces$NetherFossilPiece#handleDataMarker(String,BlockPos,ServerLevelAccessor,RandomSource,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFossilPieces.java:70
  • Modifiers: protected
  • Return: void

คืออะไร

จัดการ Data Marker

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • String string
  • BlockPos blockPos
  • ServerLevelAccessor serverLevelAccessor
  • RandomSource randomSource
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerLevelAccessor serverLevelAccessor = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
@Override
protected void handleDataMarker(String string, BlockPos blockPos, ServerLevelAccessor serverLevelAccessor, RandomSource randomSource, BoundingBox boundingBox) {
    super.handleDataMarker(string, blockPos, serverLevelAccessor, randomSource, boundingBox);
}

net.minecraft.world.level.levelgen.structure.structures.NetherFossilPieces$NetherFossilPiece#NetherFossilPiece(StructureTemplateManager,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFossilPieces.java:54
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFossilPieces.NetherFossilPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: makeSettings(), valueOf(), getString().

Parameters

  • StructureTemplateManager structureTemplateManager
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
CompoundTag compoundTag = ...;
NetherFossilPieces.NetherFossilPiece instance = new NetherFossilPieces.NetherFossilPiece(structureTemplateManager, compoundTag);

net.minecraft.world.level.levelgen.structure.structures.NetherFossilPieces$NetherFossilPiece#NetherFossilPiece(StructureTemplateManager,ResourceLocation,BlockPos,Rotation)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFossilPieces.java:50
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFossilPieces.NetherFossilPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: toString(), makeSettings().

Parameters

  • StructureTemplateManager structureTemplateManager
  • ResourceLocation resourceLocation
  • BlockPos blockPos
  • Rotation rotation

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
ResourceLocation resourceLocation = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
NetherFossilPieces.NetherFossilPiece instance = new NetherFossilPieces.NetherFossilPiece(structureTemplateManager, resourceLocation, blockPos, rotation);

net.minecraft.world.level.levelgen.structure.structures.NetherFossilPieces$NetherFossilPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFossilPieces.java:74
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ NetherFossilPieces$NetherFossilPiece

ทำงานยังไง

เรียกต่อ: encapsulate(), getBoundingBox().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

NetherFossilPieces.NetherFossilPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

NetherFossilStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.NetherFossilStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/NetherFossilStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.NetherFossilStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFossilStructure.java:30
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: random(), chunkPos(), getMinBlockX(), nextInt(), getMinBlockZ(), chunkGenerator(), getSeaLevel(), heightAccessor(). สร้างออบเจ็กต์: WorldGenerationContext, BlockPos.MutableBlockPos, BlockPos, Structure.GenerationStub. คืนค่า: Optional.empty().

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

NetherFossilStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.NetherFossilStructure#NetherFossilStructure(Structure.StructureSettings,HeightProvider)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFossilStructure.java:25
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ NetherFossilStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: height.

Parameters

  • Structure.StructureSettings structureSettings
  • HeightProvider heightProvider

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
HeightProvider heightProvider = ...;
NetherFossilStructure instance = new NetherFossilStructure(structureSettings, heightProvider);

net.minecraft.world.level.levelgen.structure.structures.NetherFossilStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/NetherFossilStructure.java:62
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ NetherFossilStructure

ทำงานยังไง

คืนค่า: StructureType.NETHER_FOSSIL.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

NetherFossilStructure instance = ...;
StructureType<?> result = instance.type();

OceanMonumentPieces$MonumentBuilding

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$MonumentBuilding
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$MonumentBuilding#MonumentBuilding(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:209
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.MonumentBuilding ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.MonumentBuilding instance = new OceanMonumentPieces.MonumentBuilding(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$MonumentBuilding#MonumentBuilding(RandomSource,int,int,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:167
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.MonumentBuilding ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: makeBoundingBox(), setOrientation(), generateRoomGraph(), add(), OceanMonumentEntryRoom(), OceanMonumentCoreRoom(), newArrayList(), FitDoubleXYRoom(). สร้างออบเจ็กต์: OceanMonumentPieces.OceanMonumentEntryRoom, OceanMonumentPieces.OceanMonumentCoreRoom, OceanMonumentPieces.FitDoubleXYRoom, OceanMonumentPieces.FitDoubleYZRoom.

Parameters

  • RandomSource randomSource
  • int i
  • int j
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
Direction direction = ...;
OceanMonumentPieces.MonumentBuilding instance = new OceanMonumentPieces.MonumentBuilding(randomSource, 0, 0, direction);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$MonumentBuilding#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:326
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$MonumentBuilding

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: max(), getSeaLevel(), minY(), generateWaterBox(), generateWing(), generateEntranceArchs(), generateEntranceWall(), generateRoofPiece().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.MonumentBuilding instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentPieces$OceanMonumentCoreRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentCoreRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentCoreRoom#OceanMonumentCoreRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:715
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentCoreRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentCoreRoom instance = new OceanMonumentPieces.OceanMonumentCoreRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentCoreRoom#OceanMonumentCoreRoom(Direction,OceanMonumentPieces.RoomDefinition)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:711
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentCoreRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Direction direction
  • OceanMonumentPieces.RoomDefinition roomDefinition

ตัวอย่างใช้งาน

Direction direction = ...;
OceanMonumentPieces.RoomDefinition roomDefinition = ...;
OceanMonumentPieces.OceanMonumentCoreRoom instance = new OceanMonumentPieces.OceanMonumentCoreRoom(direction, roomDefinition);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentCoreRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:719
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$OceanMonumentCoreRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: generateBoxOnFillOnly(), generateBox(), defaultBlockState(), placeBlock().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.OceanMonumentCoreRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentPieces$OceanMonumentDoubleXRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleXRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleXRoom#OceanMonumentDoubleXRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:801
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentDoubleXRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentDoubleXRoom instance = new OceanMonumentPieces.OceanMonumentDoubleXRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleXRoom#OceanMonumentDoubleXRoom(Direction,OceanMonumentPieces.RoomDefinition)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:797
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentDoubleXRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Direction direction
  • OceanMonumentPieces.RoomDefinition roomDefinition

ตัวอย่างใช้งาน

Direction direction = ...;
OceanMonumentPieces.RoomDefinition roomDefinition = ...;
OceanMonumentPieces.OceanMonumentDoubleXRoom instance = new OceanMonumentPieces.OceanMonumentDoubleXRoom(direction, roomDefinition);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleXRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:805
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$OceanMonumentDoubleXRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: get3DDataValue(), generateDefaultFloor(), generateBoxOnFillOnly(), generateBox(), placeBlock(), generateWaterBox().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.OceanMonumentDoubleXRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentPieces$OceanMonumentDoubleXYRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleXYRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleXYRoom#OceanMonumentDoubleXYRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:878
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentDoubleXYRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentDoubleXYRoom instance = new OceanMonumentPieces.OceanMonumentDoubleXYRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleXYRoom#OceanMonumentDoubleXYRoom(Direction,OceanMonumentPieces.RoomDefinition)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:874
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentDoubleXYRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Direction direction
  • OceanMonumentPieces.RoomDefinition roomDefinition

ตัวอย่างใช้งาน

Direction direction = ...;
OceanMonumentPieces.RoomDefinition roomDefinition = ...;
OceanMonumentPieces.OceanMonumentDoubleXYRoom instance = new OceanMonumentPieces.OceanMonumentDoubleXYRoom(direction, roomDefinition);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleXYRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:882
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$OceanMonumentDoubleXYRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: get3DDataValue(), generateDefaultFloor(), generateBoxOnFillOnly(), generateBox(), placeBlock(), generateWaterBox().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.OceanMonumentDoubleXYRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentPieces$OceanMonumentDoubleYRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleYRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleYRoom#OceanMonumentDoubleYRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:999
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentDoubleYRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentDoubleYRoom instance = new OceanMonumentPieces.OceanMonumentDoubleYRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleYRoom#OceanMonumentDoubleYRoom(Direction,OceanMonumentPieces.RoomDefinition)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:995
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentDoubleYRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Direction direction
  • OceanMonumentPieces.RoomDefinition roomDefinition

ตัวอย่างใช้งาน

Direction direction = ...;
OceanMonumentPieces.RoomDefinition roomDefinition = ...;
OceanMonumentPieces.OceanMonumentDoubleYRoom instance = new OceanMonumentPieces.OceanMonumentDoubleYRoom(direction, roomDefinition);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleYRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1003
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$OceanMonumentDoubleYRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: generateDefaultFloor(), get3DDataValue(), generateBoxOnFillOnly(), generateBox().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.OceanMonumentDoubleYRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentPieces$OceanMonumentDoubleYZRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleYZRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleYZRoom#OceanMonumentDoubleYZRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1087
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentDoubleYZRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentDoubleYZRoom instance = new OceanMonumentPieces.OceanMonumentDoubleYZRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleYZRoom#OceanMonumentDoubleYZRoom(Direction,OceanMonumentPieces.RoomDefinition)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1083
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentDoubleYZRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Direction direction
  • OceanMonumentPieces.RoomDefinition roomDefinition

ตัวอย่างใช้งาน

Direction direction = ...;
OceanMonumentPieces.RoomDefinition roomDefinition = ...;
OceanMonumentPieces.OceanMonumentDoubleYZRoom instance = new OceanMonumentPieces.OceanMonumentDoubleYZRoom(direction, roomDefinition);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleYZRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1091
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$OceanMonumentDoubleYZRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: get3DDataValue(), generateDefaultFloor(), generateBoxOnFillOnly(), generateBox(), generateWaterBox().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.OceanMonumentDoubleYZRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentPieces$OceanMonumentDoubleZRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleZRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleZRoom#OceanMonumentDoubleZRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1206
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentDoubleZRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentDoubleZRoom instance = new OceanMonumentPieces.OceanMonumentDoubleZRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleZRoom#OceanMonumentDoubleZRoom(Direction,OceanMonumentPieces.RoomDefinition)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1202
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentDoubleZRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Direction direction
  • OceanMonumentPieces.RoomDefinition roomDefinition

ตัวอย่างใช้งาน

Direction direction = ...;
OceanMonumentPieces.RoomDefinition roomDefinition = ...;
OceanMonumentPieces.OceanMonumentDoubleZRoom instance = new OceanMonumentPieces.OceanMonumentDoubleZRoom(direction, roomDefinition);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentDoubleZRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1210
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$OceanMonumentDoubleZRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: get3DDataValue(), generateDefaultFloor(), generateBoxOnFillOnly(), generateBox(), placeBlock(), generateWaterBox().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.OceanMonumentDoubleZRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentPieces$OceanMonumentEntryRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentEntryRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentEntryRoom#OceanMonumentEntryRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1302
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentEntryRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentEntryRoom instance = new OceanMonumentPieces.OceanMonumentEntryRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentEntryRoom#OceanMonumentEntryRoom(Direction,OceanMonumentPieces.RoomDefinition)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1298
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentEntryRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Direction direction
  • OceanMonumentPieces.RoomDefinition roomDefinition

ตัวอย่างใช้งาน

Direction direction = ...;
OceanMonumentPieces.RoomDefinition roomDefinition = ...;
OceanMonumentPieces.OceanMonumentEntryRoom instance = new OceanMonumentPieces.OceanMonumentEntryRoom(direction, roomDefinition);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentEntryRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1306
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$OceanMonumentEntryRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: generateBox(), get3DDataValue(), generateWaterBox().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.OceanMonumentEntryRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentPieces$OceanMonumentPenthouse

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPenthouse
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPenthouse#OceanMonumentPenthouse(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1344
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentPenthouse ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentPenthouse instance = new OceanMonumentPieces.OceanMonumentPenthouse(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPenthouse#OceanMonumentPenthouse(Direction,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1340
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentPenthouse ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Direction direction
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

Direction direction = ...;
BoundingBox boundingBox = ...;
OceanMonumentPieces.OceanMonumentPenthouse instance = new OceanMonumentPieces.OceanMonumentPenthouse(direction, boundingBox);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPenthouse#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1348
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$OceanMonumentPenthouse

ทำงานยังไง

มีการวนลูป. เรียกต่อ: generateBox(), placeBlock(), generateWaterBox(), spawnElder().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.OceanMonumentPenthouse instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentPieces$OceanMonumentPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: protected abstract static
  • Extends: StructurePiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1478
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPiece#chunkIntersects(BoundingBox,int,int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1526
  • Modifiers: protected
  • Return: boolean

คืออะไร

ดำเนินการ chunkIntersects ตาม implementation ของ OceanMonumentPieces$OceanMonumentPiece

ทำงานยังไง

เรียกต่อ: getWorldX(), getWorldZ(), intersects(), min(), max(). คืนค่า: boundingBox.intersects(Math.min(m, o), Math.min(n, p), Math.max(m, o), Math.max(n, p)).

Parameters

  • BoundingBox boundingBox
  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
@Override
protected boolean chunkIntersects(BoundingBox boundingBox, int i, int j, int k, int l) {
    return super.chunkIntersects(boundingBox, i, j, k, l);
}

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPiece#generateBoxOnFillOnly(WorldGenLevel,BoundingBox,int,int,int,int,int,int,BlockState)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1514
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ generateBoxOnFillOnly ตาม implementation ของ OceanMonumentPieces$OceanMonumentPiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getBlock(), placeBlock().

Parameters

  • WorldGenLevel worldGenLevel
  • BoundingBox boundingBox
  • int i
  • int j
  • int k
  • int l
  • int m
  • int n
  • BlockState blockState

ตัวอย่างใช้งาน

WorldGenLevel worldGenLevel = ...;
BoundingBox boundingBox = ...;
BlockState blockState = ...;
@Override
protected void generateBoxOnFillOnly(WorldGenLevel worldGenLevel, BoundingBox boundingBox, int i, int j, int k, int l, int m, int n, BlockState blockState) {
    super.generateBoxOnFillOnly(worldGenLevel, boundingBox, i, j, k, l, m, n, blockState);
}

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPiece#generateDefaultFloor(WorldGenLevel,BoundingBox,int,int,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1499
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ generateDefaultFloor ตาม implementation ของ OceanMonumentPieces$OceanMonumentPiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: generateBox().

Parameters

  • WorldGenLevel worldGenLevel
  • BoundingBox boundingBox
  • int i
  • int j
  • boolean bl

ตัวอย่างใช้งาน

WorldGenLevel worldGenLevel = ...;
BoundingBox boundingBox = ...;
@Override
protected void generateDefaultFloor(WorldGenLevel worldGenLevel, BoundingBox boundingBox, int i, int j, boolean bl) {
    super.generateDefaultFloor(worldGenLevel, boundingBox, i, j, bl);
}

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPiece#generateWaterBox(WorldGenLevel,BoundingBox,int,int,int,int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1482
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ generateWaterBox ตาม implementation ของ OceanMonumentPieces$OceanMonumentPiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getBlock(), contains(), getWorldY(), getSeaLevel(), placeBlock(), defaultBlockState().

Parameters

  • WorldGenLevel worldGenLevel
  • BoundingBox boundingBox
  • int i
  • int j
  • int k
  • int l
  • int m
  • int n

ตัวอย่างใช้งาน

WorldGenLevel worldGenLevel = ...;
BoundingBox boundingBox = ...;
@Override
protected void generateWaterBox(WorldGenLevel worldGenLevel, BoundingBox boundingBox, int i, int j, int k, int l, int m, int n) {
    super.generateWaterBox(worldGenLevel, boundingBox, i, j, k, l, m, n);
}

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPiece#getRoomIndex(int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1433
  • Modifiers: protected static
  • Return: int

คืออะไร

อ่านค่า Room Index

ทำงานยังไง

คืนค่า: j * 25 + k * 5 + i.

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

@Override
protected int getRoomIndex(int i, int j, int k) {
    return super.getRoomIndex(i, j, k);
}

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPiece#OceanMonumentPiece(StructurePieceType,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1474
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • StructurePieceType structurePieceType
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceType structurePieceType = ...;
CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentPiece instance = new OceanMonumentPieces.OceanMonumentPiece(structurePieceType, compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPiece#OceanMonumentPiece(StructurePieceType,Direction,int,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1437
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • StructurePieceType structurePieceType
  • Direction direction
  • int i
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

StructurePieceType structurePieceType = ...;
Direction direction = ...;
BoundingBox boundingBox = ...;
OceanMonumentPieces.OceanMonumentPiece instance = new OceanMonumentPieces.OceanMonumentPiece(structurePieceType, direction, 0, boundingBox);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPiece#OceanMonumentPiece(StructurePieceType,int,Direction,OceanMonumentPieces.RoomDefinition,int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1442
  • Modifiers: protected
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: roomDefinition. เรียกต่อ: makeBoundingBox(), setOrientation().

Parameters

  • StructurePieceType structurePieceType
  • int i
  • Direction direction
  • OceanMonumentPieces.RoomDefinition roomDefinition
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

StructurePieceType structurePieceType = ...;
Direction direction = ...;
OceanMonumentPieces.RoomDefinition roomDefinition = ...;
OceanMonumentPieces.OceanMonumentPiece instance = new OceanMonumentPieces.OceanMonumentPiece(structurePieceType, 0, direction, roomDefinition, 0, 0, 0);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentPiece#spawnElder(WorldGenLevel,BoundingBox,int,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1534
  • Modifiers: protected
  • Return: void

คืออะไร

สร้าง entity ในโลก Elder

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getWorldPos(), isInside(), create(), getLevel(), heal(), getMaxHealth(), moveTo(), getX().

Parameters

  • WorldGenLevel worldGenLevel
  • BoundingBox boundingBox
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

WorldGenLevel worldGenLevel = ...;
BoundingBox boundingBox = ...;
@Override
protected void spawnElder(WorldGenLevel worldGenLevel, BoundingBox boundingBox, int i, int j, int k) {
    super.spawnElder(worldGenLevel, boundingBox, i, j, k);
}

OceanMonumentPieces$OceanMonumentSimpleRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentSimpleRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentSimpleRoom#OceanMonumentSimpleRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1556
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentSimpleRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentSimpleRoom instance = new OceanMonumentPieces.OceanMonumentSimpleRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentSimpleRoom#OceanMonumentSimpleRoom(Direction,OceanMonumentPieces.RoomDefinition,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1551
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentSimpleRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: mainDesign. เรียกต่อ: nextInt().

Parameters

  • Direction direction
  • OceanMonumentPieces.RoomDefinition roomDefinition
  • RandomSource randomSource

ตัวอย่างใช้งาน

Direction direction = ...;
OceanMonumentPieces.RoomDefinition roomDefinition = ...;
RandomSource randomSource = ...;
OceanMonumentPieces.OceanMonumentSimpleRoom instance = new OceanMonumentPieces.OceanMonumentSimpleRoom(direction, roomDefinition, randomSource);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentSimpleRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1560
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$OceanMonumentSimpleRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: mainDesign. เรียกต่อ: generateDefaultFloor(), get3DDataValue(), generateBoxOnFillOnly(), nextBoolean(), countOpenings(), generateBox(), placeBlock(), generateWaterBox().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.OceanMonumentSimpleRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentPieces$OceanMonumentSimpleTopRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentSimpleTopRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentSimpleTopRoom#OceanMonumentSimpleTopRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1730
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentSimpleTopRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentSimpleTopRoom instance = new OceanMonumentPieces.OceanMonumentSimpleTopRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentSimpleTopRoom#OceanMonumentSimpleTopRoom(Direction,OceanMonumentPieces.RoomDefinition)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1726
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentSimpleTopRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Direction direction
  • OceanMonumentPieces.RoomDefinition roomDefinition

ตัวอย่างใช้งาน

Direction direction = ...;
OceanMonumentPieces.RoomDefinition roomDefinition = ...;
OceanMonumentPieces.OceanMonumentSimpleTopRoom instance = new OceanMonumentPieces.OceanMonumentSimpleTopRoom(direction, roomDefinition);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentSimpleTopRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1734
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$OceanMonumentSimpleTopRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: generateDefaultFloor(), get3DDataValue(), generateBoxOnFillOnly(), nextInt(), defaultBlockState(), generateBox(), generateWaterBox().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.OceanMonumentSimpleTopRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentPieces$OceanMonumentWingRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentWingRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: OceanMonumentPieces.OceanMonumentPiece

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentWingRoom#OceanMonumentWingRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1792
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentWingRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
OceanMonumentPieces.OceanMonumentWingRoom instance = new OceanMonumentPieces.OceanMonumentWingRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentWingRoom#OceanMonumentWingRoom(Direction,BoundingBox,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1787
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentPieces.OceanMonumentWingRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: mainDesign.

Parameters

  • Direction direction
  • BoundingBox boundingBox
  • int i

ตัวอย่างใช้งาน

Direction direction = ...;
BoundingBox boundingBox = ...;
OceanMonumentPieces.OceanMonumentWingRoom instance = new OceanMonumentPieces.OceanMonumentWingRoom(direction, boundingBox, 0);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentPieces$OceanMonumentWingRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces.java:1796
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanMonumentPieces$OceanMonumentWingRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: mainDesign. เรียกต่อ: generateBox(), placeBlock(), spawnElder().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanMonumentPieces.OceanMonumentWingRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanMonumentStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanMonumentStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentStructure.java:29
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: chunkPos(), getBlockX(), getBlockZ(), biomeSource(), getBiomesWithin(), chunkGenerator(), getSeaLevel(), randomState(). คืนค่า: Optional.empty().

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

OceanMonumentStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentStructure#OceanMonumentStructure(Structure.StructureSettings)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentStructure.java:25
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanMonumentStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Structure.StructureSettings structureSettings

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
OceanMonumentStructure instance = new OceanMonumentStructure(structureSettings);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentStructure#regeneratePiecesAfterLoad(ChunkPos,long,PiecesContainer)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentStructure.java:57
  • Modifiers: public static
  • Return: PiecesContainer

คืออะไร

ดำเนินการ regeneratePiecesAfterLoad ตาม implementation ของ OceanMonumentStructure

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), generateUniqueSeed(), setLargeFeatureSeed(), pieces(), get(), getBoundingBox(), minX(), minZ(). สร้างออบเจ็กต์: WorldgenRandom, LegacyRandomSource, OceanMonumentPieces.MonumentBuilding, StructurePiecesBuilder. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ChunkPos chunkPos
  • long l
  • PiecesContainer piecesContainer

ตัวอย่างใช้งาน

ChunkPos chunkPos = ...;
PiecesContainer piecesContainer = ...;
PiecesContainer result = OceanMonumentStructure.regeneratePiecesAfterLoad(chunkPos, 0L, piecesContainer);

net.minecraft.world.level.levelgen.structure.structures.OceanMonumentStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanMonumentStructure.java:76
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ OceanMonumentStructure

ทำงานยังไง

คืนค่า: StructureType.OCEAN_MONUMENT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

OceanMonumentStructure instance = ...;
StructureType<?> result = instance.type();

OceanRuinPieces

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanRuinPieces
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanRuinPieces.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.levelgen.structure.structures.OceanRuinPieces#addPieces(StructureTemplateManager,BlockPos,Rotation,StructurePieceAccessor,RandomSource,OceanRuinStructure)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanRuinPieces.java:146
  • Modifiers: public static
  • Return: void

คืออะไร

เพิ่ม Pieces

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: nextFloat(), addPiece(), addClusterRuins().

Parameters

  • StructureTemplateManager structureTemplateManager
  • BlockPos blockPos
  • Rotation rotation
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • OceanRuinStructure oceanRuinStructure

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
OceanRuinStructure oceanRuinStructure = ...;
OceanRuinPieces.addPieces(structureTemplateManager, blockPos, rotation, structurePieceAccessor, randomSource, oceanRuinStructure);

OceanRuinPieces$OceanRuinPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanRuinPieces$OceanRuinPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanRuinPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: TemplateStructurePiece

net.minecraft.world.level.levelgen.structure.structures.OceanRuinPieces$OceanRuinPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanRuinPieces.java:288
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putString(), getRotation(), name(), putFloat(), toString(), putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.OceanRuinPieces$OceanRuinPiece#create(StructureTemplateManager,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanRuinPieces.java:280
  • Modifiers: public static
  • Return: OceanRuinPieces.OceanRuinPiece

คืออะไร

สร้าง create

ทำงานยังไง

เรียกต่อ: valueOf(), getString(), getFloat(), getBoolean(), OceanRuinPiece(). สร้างออบเจ็กต์: OceanRuinPieces.OceanRuinPiece. คืนค่า: new OceanRuinPieces.OceanRuinPiece(structureTemplateManager, compoundTag, rotation, f, type, bl).

Parameters

  • StructureTemplateManager structureTemplateManager
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
CompoundTag compoundTag = ...;
OceanRuinPieces.OceanRuinPiece result = OceanRuinPieces.OceanRuinPiece.create(structureTemplateManager, compoundTag);

net.minecraft.world.level.levelgen.structure.structures.OceanRuinPieces$OceanRuinPiece#handleDataMarker(String,BlockPos,ServerLevelAccessor,RandomSource,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanRuinPieces.java:297
  • Modifiers: protected
  • Return: void

คืออะไร

จัดการ Data Marker

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), setBlock(), defaultBlockState(), setValue(), getFluidState(), is(), getBlockEntity(), setLootTable().

Parameters

  • String string
  • BlockPos blockPos
  • ServerLevelAccessor serverLevelAccessor
  • RandomSource randomSource
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerLevelAccessor serverLevelAccessor = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
@Override
protected void handleDataMarker(String string, BlockPos blockPos, ServerLevelAccessor serverLevelAccessor, RandomSource randomSource, BoundingBox boundingBox) {
    super.handleDataMarker(string, blockPos, serverLevelAccessor, randomSource, boundingBox);
}

net.minecraft.world.level.levelgen.structure.structures.OceanRuinPieces$OceanRuinPiece#OceanRuinPiece(StructureTemplateManager,ResourceLocation,BlockPos,Rotation,float,OceanRuinStructure.Type,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanRuinPieces.java:244
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanRuinPieces.OceanRuinPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: integrity, biomeType, isLarge. เรียกต่อ: toString(), makeSettings().

Parameters

  • StructureTemplateManager structureTemplateManager
  • ResourceLocation resourceLocation
  • BlockPos blockPos
  • Rotation rotation
  • float f
  • OceanRuinStructure.Type type
  • boolean bl

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
ResourceLocation resourceLocation = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
OceanRuinStructure.Type type = ...;
OceanRuinPieces.OceanRuinPiece instance = new OceanRuinPieces.OceanRuinPiece(structureTemplateManager, resourceLocation, blockPos, rotation, 0.0F, type, true);

net.minecraft.world.level.levelgen.structure.structures.OceanRuinPieces$OceanRuinPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanRuinPieces.java:324
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ OceanRuinPieces$OceanRuinPiece

ทำงานยังไง

แก้ state: templatePosition. เรียกต่อ: getHeight(), getX(), getZ(), transform(), getSize(), getRotation(), offset(). สร้างออบเจ็กต์: BlockPos.

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

OceanRuinPieces.OceanRuinPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

OceanRuinStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanRuinStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanRuinStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.OceanRuinStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanRuinStructure.java:36
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

เรียกต่อ: onTopOfChunkCenter(), generatePieces().

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

OceanRuinStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.OceanRuinStructure#OceanRuinStructure(Structure.StructureSettings,OceanRuinStructure.Type,float,float)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanRuinStructure.java:29
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ OceanRuinStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: biomeTemp, largeProbability, clusterProbability.

Parameters

  • Structure.StructureSettings structureSettings
  • OceanRuinStructure.Type type
  • float f
  • float g

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
OceanRuinStructure.Type type = ...;
OceanRuinStructure instance = new OceanRuinStructure(structureSettings, type, 0.0F, 0.0F);

net.minecraft.world.level.levelgen.structure.structures.OceanRuinStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanRuinStructure.java:49
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ OceanRuinStructure

ทำงานยังไง

คืนค่า: StructureType.OCEAN_RUIN.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

OceanRuinStructure instance = ...;
StructureType<?> result = instance.type();

OceanRuinStructure$Type

  • Full name: net.minecraft.world.level.levelgen.structure.structures.OceanRuinStructure$Type
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/OceanRuinStructure.java
  • Type: enum
  • Modifiers: public
  • Implements: StringRepresentable

net.minecraft.world.level.levelgen.structure.structures.OceanRuinStructure$Type#getName()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanRuinStructure.java:65
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

OceanRuinStructure.Type instance = ...;
String result = instance.getName();

net.minecraft.world.level.levelgen.structure.structures.OceanRuinStructure$Type#getSerializedName()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/OceanRuinStructure.java:69
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Serialized Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

OceanRuinStructure.Type instance = ...;
String result = instance.getSerializedName();

RuinedPortalPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java
  • Type: class
  • Modifiers: public
  • Extends: TemplateStructurePiece

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java:94
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putString(), getRotation(), name(), getMirror(), getName(), encodeStart(), resultOrPartial(), ifPresent().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece#getHeightMapType(RuinedPortalPiece.VerticalPlacement)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java:290
  • Modifiers: public static
  • Return: Heightmap.Types

คืออะไร

อ่านค่า Height Map Type

ทำงานยังไง

คืนค่า: verticalPlacement == RuinedPortalPiece.VerticalPlacement.ON_OCEAN_FLOOR ? Heightmap.Types.OCEAN_FLOOR_WG : Heightmap.Types.WORLD_SURFACE_WG.

Parameters

  • RuinedPortalPiece.VerticalPlacement verticalPlacement

ตัวอย่างใช้งาน

RuinedPortalPiece.VerticalPlacement verticalPlacement = ...;
Heightmap.Types result = RuinedPortalPiece.getHeightMapType(verticalPlacement);

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece#handleDataMarker(String,BlockPos,ServerLevelAccessor,RandomSource,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java:185
  • Modifiers: protected
  • Return: void

คืออะไร

จัดการ Data Marker

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • String string
  • BlockPos blockPos
  • ServerLevelAccessor serverLevelAccessor
  • RandomSource randomSource
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerLevelAccessor serverLevelAccessor = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
@Override
protected void handleDataMarker(String string, BlockPos blockPos, ServerLevelAccessor serverLevelAccessor, RandomSource randomSource, BoundingBox boundingBox) {
    super.handleDataMarker(string, blockPos, serverLevelAccessor, randomSource, boundingBox);
}

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java:155
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ RuinedPortalPiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBoundingBox(), isInside(), getCenter(), encapsulate(), spreadNetherrack(), addNetherrackDripColumnsBelowPortal(), betweenClosedStream(), forEach().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

RuinedPortalPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece#RuinedPortalPiece(StructureTemplateManager,BlockPos,RuinedPortalPiece.VerticalPlacement,RuinedPortalPiece.Properties,ResourceLocation,StructureTemplate,Rotation,Mirror,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java:59
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RuinedPortalPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: verticalPlacement, properties. เรียกต่อ: toString(), makeSettings().

Parameters

  • StructureTemplateManager structureTemplateManager
  • BlockPos blockPos
  • RuinedPortalPiece.VerticalPlacement verticalPlacement
  • RuinedPortalPiece.Properties properties
  • ResourceLocation resourceLocation
  • StructureTemplate structureTemplate
  • Rotation rotation
  • Mirror mirror
  • BlockPos blockPos2

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
BlockPos blockPos = ...;
RuinedPortalPiece.VerticalPlacement verticalPlacement = ...;
RuinedPortalPiece.Properties properties = ...;
ResourceLocation resourceLocation = ...;
StructureTemplate structureTemplate = ...;
Rotation rotation = ...;
Mirror mirror = ...;
BlockPos blockPos2 = ...;
RuinedPortalPiece instance = new RuinedPortalPiece(structureTemplateManager, blockPos, verticalPlacement, properties, resourceLocation, structureTemplate, rotation, mirror, blockPos2);

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece#RuinedPortalPiece(StructureTemplateManager,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java:83
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RuinedPortalPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: verticalPlacement, properties. เรียกต่อ: makeSettings(), byName(), getString(), parse(), get(), getPartialOrThrow(). สร้างออบเจ็กต์: Dynamic<>.

Parameters

  • StructureTemplateManager structureTemplateManager
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
CompoundTag compoundTag = ...;
RuinedPortalPiece instance = new RuinedPortalPiece(structureTemplateManager, compoundTag);

RuinedPortalPiece$Properties

  • Full name: net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece$Properties
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java
  • Type: class
  • Modifiers: public static

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece$Properties#Properties()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java:321
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RuinedPortalPiece.Properties ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RuinedPortalPiece.Properties instance = new RuinedPortalPiece.Properties();

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece$Properties#Properties(boolean,float,boolean,boolean,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java:324
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RuinedPortalPiece.Properties ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: cold, mossiness, airPocket, overgrown, vines, replaceWithBlackstone.

Parameters

  • boolean bl
  • float f
  • boolean bl2
  • boolean bl3
  • boolean bl4
  • boolean bl5

ตัวอย่างใช้งาน

RuinedPortalPiece.Properties instance = new RuinedPortalPiece.Properties(true, 0.0F, true, true, true, true);

RuinedPortalPiece$VerticalPlacement

  • Full name: net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece$VerticalPlacement
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java
  • Type: enum
  • Modifiers: public
  • Implements: StringRepresentable

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece$VerticalPlacement#byName(String)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java:355
  • Modifiers: public static
  • Return: RuinedPortalPiece.VerticalPlacement

คืออะไร

ดำเนินการ byName ตาม implementation ของ RuinedPortalPiece$VerticalPlacement

ทำงานยังไง

คืนค่า: CODEC.byName(string).

Parameters

  • String string

ตัวอย่างใช้งาน

RuinedPortalPiece.VerticalPlacement result = RuinedPortalPiece.VerticalPlacement.byName("value");

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece$VerticalPlacement#getName()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java:351
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RuinedPortalPiece.VerticalPlacement instance = ...;
String result = instance.getName();

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece$VerticalPlacement#getSerializedName()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalPiece.java:359
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Serialized Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RuinedPortalPiece.VerticalPlacement instance = ...;
String result = instance.getSerializedName();

RuinedPortalStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.RuinedPortalStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/RuinedPortalStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalStructure.java:69
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: Properties(), random(), size(), weight(), nextFloat(), get(), sample(), airPocketProbability(). สร้างออบเจ็กต์: RuinedPortalPiece.Properties, IllegalStateException, BlockPos, Structure.GenerationStub.

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

RuinedPortalStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalStructure#RuinedPortalStructure(Structure.StructureSettings,List<RuinedPortalStructure.Setup>)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalStructure.java:60
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RuinedPortalStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: setups.

Parameters

  • Structure.StructureSettings structureSettings
  • List<RuinedPortalStructure.Setup> list

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
List<RuinedPortalStructure.Setup> list = ...;
RuinedPortalStructure instance = new RuinedPortalStructure(structureSettings, list);

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalStructure#RuinedPortalStructure(Structure.StructureSettings,RuinedPortalStructure.Setup)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalStructure.java:65
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RuinedPortalStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: of().

Parameters

  • Structure.StructureSettings structureSettings
  • RuinedPortalStructure.Setup setup

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
RuinedPortalStructure.Setup setup = ...;
RuinedPortalStructure instance = new RuinedPortalStructure(structureSettings, setup);

net.minecraft.world.level.levelgen.structure.structures.RuinedPortalStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/RuinedPortalStructure.java:232
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ RuinedPortalStructure

ทำงานยังไง

คืนค่า: StructureType.RUINED_PORTAL.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RuinedPortalStructure instance = ...;
StructureType<?> result = instance.type();

ShipwreckPieces

  • Full name: net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces#addRandomPiece(StructureTemplateManager,BlockPos,Rotation,StructurePieceAccessor,RandomSource,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java:73
  • Modifiers: public static
  • Return: ShipwreckPieces.ShipwreckPiece

คืออะไร

เพิ่ม Random Piece

ทำงานยังไง

เรียกต่อ: getRandom(), ShipwreckPiece(), addPiece(). สร้างออบเจ็กต์: ShipwreckPieces.ShipwreckPiece. คืนค่า: shipwreckPiece.

Parameters

  • StructureTemplateManager structureTemplateManager
  • BlockPos blockPos
  • Rotation rotation
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • boolean bl

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
ShipwreckPieces.ShipwreckPiece result = ShipwreckPieces.addRandomPiece(structureTemplateManager, blockPos, rotation, structurePieceAccessor, randomSource, true);

ShipwreckPieces$ShipwreckPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces$ShipwreckPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: TemplateStructurePiece

net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces$ShipwreckPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java:102
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean(), putString(), getRotation(), name().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces$ShipwreckPiece#adjustPositionHeight(int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java:171
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ adjustPositionHeight ตาม implementation ของ ShipwreckPieces$ShipwreckPiece

ทำงานยังไง

แก้ state: templatePosition. เรียกต่อ: getX(), getZ(). สร้างออบเจ็กต์: BlockPos.

Parameters

  • int i

ตัวอย่างใช้งาน

ShipwreckPieces.ShipwreckPiece instance = ...;
instance.adjustPositionHeight(0);

net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces$ShipwreckPiece#calculateBeachedPosition(int,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java:167
  • Modifiers: public
  • Return: int

คืออะไร

คำนวณ Beached Position

ทำงานยังไง

เรียกต่อ: getSize(), getY(), nextInt(). คืนค่า: i - this.template.getSize().getY() / 2 - randomSource.nextInt(3).

Parameters

  • int i
  • RandomSource randomSource

ตัวอย่างใช้งาน

ShipwreckPieces.ShipwreckPiece instance = ...;
RandomSource randomSource = ...;
int result = instance.calculateBeachedPosition(0, randomSource);

net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces$ShipwreckPiece#handleDataMarker(String,BlockPos,ServerLevelAccessor,RandomSource,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java:117
  • Modifiers: protected
  • Return: void

คืออะไร

จัดการ Data Marker

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), setBlockEntityLootTable(), below().

Parameters

  • String string
  • BlockPos blockPos
  • ServerLevelAccessor serverLevelAccessor
  • RandomSource randomSource
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerLevelAccessor serverLevelAccessor = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
@Override
protected void handleDataMarker(String string, BlockPos blockPos, ServerLevelAccessor serverLevelAccessor, RandomSource randomSource, BoundingBox boundingBox) {
    super.handleDataMarker(string, blockPos, serverLevelAccessor, randomSource, boundingBox);
}

net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces$ShipwreckPiece#isTooBigToFitInWorldGenRegion()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java:162
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Too Big To Fit In World Gen Region

ทำงานยังไง

เรียกต่อ: getSize(), getX(), getY(). คืนค่า: vec3i.getX() > 32 || vec3i.getY() > 32.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ShipwreckPieces.ShipwreckPiece instance = ...;
boolean result = instance.isTooBigToFitInWorldGenRegion();

net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces$ShipwreckPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java:125
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ ShipwreckPieces$ShipwreckPiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isTooBigToFitInWorldGenRegion(), getMaxY(), getSize(), getX(), getZ(), getHeight(), offset(), betweenClosed().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

ShipwreckPieces.ShipwreckPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces$ShipwreckPiece#ShipwreckPiece(StructureTemplateManager,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java:95
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ShipwreckPieces.ShipwreckPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isBeached. เรียกต่อ: makeSettings(), valueOf(), getString(), getBoolean().

Parameters

  • StructureTemplateManager structureTemplateManager
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
CompoundTag compoundTag = ...;
ShipwreckPieces.ShipwreckPiece instance = new ShipwreckPieces.ShipwreckPiece(structureTemplateManager, compoundTag);

net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces$ShipwreckPiece#ShipwreckPiece(StructureTemplateManager,ResourceLocation,BlockPos,Rotation,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java:90
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ShipwreckPieces.ShipwreckPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isBeached. เรียกต่อ: toString(), makeSettings().

Parameters

  • StructureTemplateManager structureTemplateManager
  • ResourceLocation resourceLocation
  • BlockPos blockPos
  • Rotation rotation
  • boolean bl

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
ResourceLocation resourceLocation = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
ShipwreckPieces.ShipwreckPiece instance = new ShipwreckPieces.ShipwreckPiece(structureTemplateManager, resourceLocation, blockPos, rotation, true);

ShipwreckStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.ShipwreckStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/ShipwreckStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.ShipwreckStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckStructure.java:27
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

เรียกต่อ: onTopOfChunkCenter(), generatePieces(). คืนค่า: onTopOfChunkCenter(generationContext, types, structurePiecesBuilder -> this.generatePieces(structurePiecesBuilder, generationContext)).

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

ShipwreckStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.ShipwreckStructure#ShipwreckStructure(Structure.StructureSettings,boolean)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckStructure.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ShipwreckStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isBeached.

Parameters

  • Structure.StructureSettings structureSettings
  • boolean bl

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
ShipwreckStructure instance = new ShipwreckStructure(structureSettings, true);

net.minecraft.world.level.levelgen.structure.structures.ShipwreckStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/ShipwreckStructure.java:53
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ ShipwreckStructure

ทำงานยังไง

คืนค่า: StructureType.SHIPWRECK.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ShipwreckStructure instance = ...;
StructureType<?> result = instance.type();

StrongholdPieces

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces#resetPieces()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:71
  • Modifiers: public static
  • Return: void

คืออะไร

รีเซ็ต Pieces

ทำงานยังไง

มีการวนลูป. เรียกต่อ: newArrayList(), add().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

StrongholdPieces.resetPieces();

StrongholdPieces$ChestCorridor

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$ChestCorridor
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.StrongholdPiece

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$ChestCorridor#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:234
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$ChestCorridor#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:240
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateSmallDoorChildForward().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

StrongholdPieces.ChestCorridor instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$ChestCorridor#ChestCorridor(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:229
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.ChestCorridor ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: hasPlacedChest. เรียกต่อ: getBoolean().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.ChestCorridor instance = new StrongholdPieces.ChestCorridor(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$ChestCorridor#ChestCorridor(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:223
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.ChestCorridor ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entryDoor. เรียกต่อ: setOrientation(), randomSmallDoor().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.ChestCorridor instance = new StrongholdPieces.ChestCorridor(0, randomSource, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$ChestCorridor#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:245
  • Modifiers: public static
  • Return: StrongholdPieces.ChestCorridor

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), ChestCorridor(). สร้างออบเจ็กต์: StrongholdPieces.ChestCorridor.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
StrongholdPieces.ChestCorridor result = StrongholdPieces.ChestCorridor.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$ChestCorridor#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:254
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$ChestCorridor

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: hasPlacedChest. เรียกต่อ: generateBox(), generateSmallDoor(), defaultBlockState(), placeBlock(), isInside(), getWorldPos(), createChest().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.ChestCorridor instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

StrongholdPieces$FillerCorridor

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FillerCorridor
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.StrongholdPiece

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FillerCorridor#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:298
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putInt().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FillerCorridor#FillerCorridor(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:293
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.FillerCorridor ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: steps. เรียกต่อ: getInt().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.FillerCorridor instance = new StrongholdPieces.FillerCorridor(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FillerCorridor#FillerCorridor(int,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:287
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.FillerCorridor ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: steps. เรียกต่อ: setOrientation(), getXSpan(), getZSpan().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.FillerCorridor instance = new StrongholdPieces.FillerCorridor(0, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FillerCorridor#findPieceBox(StructurePieceAccessor,RandomSource,int,int,int,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:304
  • Modifiers: public static
  • Return: BoundingBox

คืออะไร

ค้นหา Piece Box

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: orientBox(), findCollisionPiece(), getBoundingBox(), minY(), intersects(). มีจุด return อย่างน้อย 3 จุด.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
BoundingBox result = StrongholdPieces.FillerCorridor.findPieceBox(structurePieceAccessor, randomSource, 0, 0, 0, direction);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FillerCorridor#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:324
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$FillerCorridor

ทำงานยังไง

มีการวนลูป. เรียกต่อ: placeBlock(), defaultBlockState().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.FillerCorridor instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

StrongholdPieces$FiveCrossing

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FiveCrossing
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.StrongholdPiece

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FiveCrossing#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:385
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FiveCrossing#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:394
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOrientation(), generateSmallDoorChildForward(), generateSmallDoorChildLeft(), generateSmallDoorChildRight().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

StrongholdPieces.FiveCrossing instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FiveCrossing#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:422
  • Modifiers: public static
  • Return: StrongholdPieces.FiveCrossing

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), FiveCrossing(). สร้างออบเจ็กต์: StrongholdPieces.FiveCrossing.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
StrongholdPieces.FiveCrossing result = StrongholdPieces.FiveCrossing.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FiveCrossing#FiveCrossing(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:377
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.FiveCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: leftLow, leftHigh, rightLow, rightHigh. เรียกต่อ: getBoolean().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.FiveCrossing instance = new StrongholdPieces.FiveCrossing(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FiveCrossing#FiveCrossing(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:367
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.FiveCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entryDoor, leftLow, leftHigh, rightLow, rightHigh. เรียกต่อ: setOrientation(), randomSmallDoor(), nextBoolean(), nextInt().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.FiveCrossing instance = new StrongholdPieces.FiveCrossing(0, randomSource, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$FiveCrossing#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:431
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$FiveCrossing

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: generateBox(), generateSmallDoor(), defaultBlockState(), setValue(), placeBlock().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.FiveCrossing instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

StrongholdPieces$LeftTurn

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$LeftTurn
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.Turn

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$LeftTurn#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:512
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOrientation(), generateSmallDoorChildRight(), generateSmallDoorChildLeft().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

StrongholdPieces.LeftTurn instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$LeftTurn#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:522
  • Modifiers: public static
  • Return: StrongholdPieces.LeftTurn

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), LeftTurn(). สร้างออบเจ็กต์: StrongholdPieces.LeftTurn.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
StrongholdPieces.LeftTurn result = StrongholdPieces.LeftTurn.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$LeftTurn#LeftTurn(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:508
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.LeftTurn ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.LeftTurn instance = new StrongholdPieces.LeftTurn(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$LeftTurn#LeftTurn(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:502
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.LeftTurn ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entryDoor. เรียกต่อ: setOrientation(), randomSmallDoor().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.LeftTurn instance = new StrongholdPieces.LeftTurn(0, randomSource, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$LeftTurn#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:531
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$LeftTurn

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: generateBox(), generateSmallDoor(), getOrientation().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.LeftTurn instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

StrongholdPieces$Library

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Library
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.StrongholdPiece

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Library#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:571
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Library#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:577
  • Modifiers: public static
  • Return: StrongholdPieces.Library

คืออะไร

สร้าง Piece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), Library(). สร้างออบเจ็กต์: StrongholdPieces.Library. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
StrongholdPieces.Library result = StrongholdPieces.Library.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Library#Library(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:566
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.Library ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isTall. เรียกต่อ: getBoolean().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.Library instance = new StrongholdPieces.Library(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Library#Library(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:559
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.Library ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entryDoor, isTall. เรียกต่อ: setOrientation(), randomSmallDoor(), getYSpan().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.Library instance = new StrongholdPieces.Library(0, randomSource, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Library#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:591
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$Library

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: generateBox(), generateSmallDoor(), generateMaybeBox(), defaultBlockState(), placeBlock(), setValue(), createChest().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.Library instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

StrongholdPieces$PortalRoom

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PortalRoom
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.StrongholdPiece

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PortalRoom#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:748
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PortalRoom#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:754
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

ตรวจเงื่อนไขด้วย if.

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

StrongholdPieces.PortalRoom instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PortalRoom#createPiece(StructurePieceAccessor,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:761
  • Modifiers: public static
  • Return: StrongholdPieces.PortalRoom

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), PortalRoom(). สร้างออบเจ็กต์: StrongholdPieces.PortalRoom.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
Direction direction = ...;
StrongholdPieces.PortalRoom result = StrongholdPieces.PortalRoom.createPiece(structurePieceAccessor, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PortalRoom#PortalRoom(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:743
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.PortalRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: hasPlacedSpawner. เรียกต่อ: getBoolean().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.PortalRoom instance = new StrongholdPieces.PortalRoom(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PortalRoom#PortalRoom(int,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:738
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.PortalRoom ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: setOrientation().

Parameters

  • int i
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.PortalRoom instance = new StrongholdPieces.PortalRoom(0, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PortalRoom#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:768
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$PortalRoom

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: hasPlacedSpawner. เรียกต่อ: generateBox(), generateSmallDoor(), defaultBlockState(), setValue(), placeBlock(), nextFloat(), getWorldPos(), isInside().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.PortalRoom instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

StrongholdPieces$PrisonHall

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PrisonHall
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.StrongholdPiece

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PrisonHall#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:879
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateSmallDoorChildForward().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

StrongholdPieces.PrisonHall instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PrisonHall#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:884
  • Modifiers: public static
  • Return: StrongholdPieces.PrisonHall

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), PrisonHall(). สร้างออบเจ็กต์: StrongholdPieces.PrisonHall.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
StrongholdPieces.PrisonHall result = StrongholdPieces.PrisonHall.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PrisonHall#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:893
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$PrisonHall

ทำงานยังไง

มีการวนลูป. เรียกต่อ: generateBox(), generateSmallDoor(), placeBlock(), defaultBlockState(), setValue().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.PrisonHall instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PrisonHall#PrisonHall(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:875
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.PrisonHall ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.PrisonHall instance = new StrongholdPieces.PrisonHall(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$PrisonHall#PrisonHall(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:869
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.PrisonHall ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entryDoor. เรียกต่อ: setOrientation(), randomSmallDoor().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.PrisonHall instance = new StrongholdPieces.PrisonHall(0, randomSource, boundingBox, direction);

StrongholdPieces$RightTurn

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RightTurn
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.Turn

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RightTurn#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:963
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOrientation(), generateSmallDoorChildLeft(), generateSmallDoorChildRight().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

StrongholdPieces.RightTurn instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RightTurn#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:973
  • Modifiers: public static
  • Return: StrongholdPieces.RightTurn

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), RightTurn(). สร้างออบเจ็กต์: StrongholdPieces.RightTurn.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
StrongholdPieces.RightTurn result = StrongholdPieces.RightTurn.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RightTurn#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:982
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$RightTurn

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: generateBox(), generateSmallDoor(), getOrientation().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.RightTurn instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RightTurn#RightTurn(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:959
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.RightTurn ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.RightTurn instance = new StrongholdPieces.RightTurn(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RightTurn#RightTurn(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:953
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.RightTurn ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entryDoor. เรียกต่อ: setOrientation(), randomSmallDoor().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.RightTurn instance = new StrongholdPieces.RightTurn(0, randomSource, boundingBox, direction);

StrongholdPieces$RoomCrossing

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RoomCrossing
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.StrongholdPiece

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RoomCrossing#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1021
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putInt().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RoomCrossing#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1027
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateSmallDoorChildForward(), generateSmallDoorChildLeft(), generateSmallDoorChildRight().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

StrongholdPieces.RoomCrossing instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RoomCrossing#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1034
  • Modifiers: public static
  • Return: StrongholdPieces.RoomCrossing

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), RoomCrossing(). สร้างออบเจ็กต์: StrongholdPieces.RoomCrossing.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
StrongholdPieces.RoomCrossing result = StrongholdPieces.RoomCrossing.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RoomCrossing#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1043
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$RoomCrossing

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: generateBox(), generateSmallDoor(), placeBlock(), defaultBlockState(), setValue(), createChest().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.RoomCrossing instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RoomCrossing#RoomCrossing(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1016
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.RoomCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: type. เรียกต่อ: getInt().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.RoomCrossing instance = new StrongholdPieces.RoomCrossing(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$RoomCrossing#RoomCrossing(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1009
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.RoomCrossing ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entryDoor, type. เรียกต่อ: setOrientation(), randomSmallDoor(), nextInt().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.RoomCrossing instance = new StrongholdPieces.RoomCrossing(0, randomSource, boundingBox, direction);

StrongholdPieces$StairsDown

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StairsDown
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.StrongholdPiece

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StairsDown#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1189
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StairsDown#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1195
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: generateSmallDoorChildForward().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

StrongholdPieces.StairsDown instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StairsDown#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1204
  • Modifiers: public static
  • Return: StrongholdPieces.StairsDown

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), StairsDown(). สร้างออบเจ็กต์: StrongholdPieces.StairsDown.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
StrongholdPieces.StairsDown result = StrongholdPieces.StairsDown.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StairsDown#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1213
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$StairsDown

ทำงานยังไง

เรียกต่อ: generateBox(), generateSmallDoor(), placeBlock(), defaultBlockState().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.StairsDown instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StairsDown#StairsDown(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1185
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.StairsDown ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.StairsDown instance = new StrongholdPieces.StairsDown(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StairsDown#StairsDown(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1173
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.StairsDown ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isSource, entryDoor. เรียกต่อ: setOrientation(), randomSmallDoor().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.StairsDown instance = new StrongholdPieces.StairsDown(0, randomSource, boundingBox, direction);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StairsDown#StairsDown(StructurePieceType,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1180
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.StairsDown ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isSource. เรียกต่อ: getBoolean().

Parameters

  • StructurePieceType structurePieceType
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceType structurePieceType = ...;
CompoundTag compoundTag = ...;
StrongholdPieces.StairsDown instance = new StrongholdPieces.StairsDown(structurePieceType, compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StairsDown#StairsDown(StructurePieceType,int,int,int,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1166
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.StairsDown ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isSource, entryDoor. เรียกต่อ: makeBoundingBox(), setOrientation().

Parameters

  • StructurePieceType structurePieceType
  • int i
  • int j
  • int k
  • Direction direction

ตัวอย่างใช้งาน

StructurePieceType structurePieceType = ...;
Direction direction = ...;
StrongholdPieces.StairsDown instance = new StrongholdPieces.StairsDown(structurePieceType, 0, 0, 0, direction);

StrongholdPieces$StartPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StartPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.StairsDown

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StartPiece#getLocatorPosition()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1260
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Locator Position

ทำงานยังไง

คืนค่า: this.portalRoomPiece != null ? this.portalRoomPiece.getLocatorPosition() : super.getLocatorPosition().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

StrongholdPieces.StartPiece instance = ...;
BlockPos result = instance.getLocatorPosition();

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StartPiece#StartPiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1256
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.StartPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.StartPiece instance = new StrongholdPieces.StartPiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StartPiece#StartPiece(RandomSource,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1252
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.StartPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getRandomHorizontalDirection().

Parameters

  • RandomSource randomSource
  • int i
  • int j

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
StrongholdPieces.StartPiece instance = new StrongholdPieces.StartPiece(randomSource, 0, 0);

StrongholdPieces$Straight

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Straight
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.StrongholdPiece

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Straight#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1287
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Straight#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1294
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: generateSmallDoorChildForward(), generateSmallDoorChildLeft(), generateSmallDoorChildRight().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

StrongholdPieces.Straight instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Straight#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1306
  • Modifiers: public static
  • Return: StrongholdPieces.Straight

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), Straight(). สร้างออบเจ็กต์: StrongholdPieces.Straight.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
StrongholdPieces.Straight result = StrongholdPieces.Straight.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Straight#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1315
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$Straight

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: generateBox(), generateSmallDoor(), defaultBlockState(), setValue(), maybeGenerateBlock().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.Straight instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Straight#Straight(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1281
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.Straight ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: leftChild, rightChild. เรียกต่อ: getBoolean().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.Straight instance = new StrongholdPieces.Straight(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Straight#Straight(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1273
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.Straight ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entryDoor, leftChild, rightChild. เรียกต่อ: setOrientation(), randomSmallDoor(), nextInt().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.Straight instance = new StrongholdPieces.Straight(0, randomSource, boundingBox, direction);

StrongholdPieces$StraightStairsDown

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StraightStairsDown
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: StrongholdPieces.StrongholdPiece

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StraightStairsDown#addChildren(StructurePiece,StructurePieceAccessor,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1359
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Children

ทำงานยังไง

เรียกต่อ: generateSmallDoorChildForward().

Parameters

  • StructurePiece structurePiece
  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource

ตัวอย่างใช้งาน

StrongholdPieces.StraightStairsDown instance = ...;
StructurePiece structurePiece = ...;
StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
instance.addChildren(structurePiece, structurePieceAccessor, randomSource);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StraightStairsDown#createPiece(StructurePieceAccessor,RandomSource,int,int,int,Direction,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1364
  • Modifiers: public static
  • Return: StrongholdPieces.StraightStairsDown

คืออะไร

สร้าง Piece

ทำงานยังไง

เรียกต่อ: orientBox(), isOkBox(), findCollisionPiece(), StraightStairsDown(). สร้างออบเจ็กต์: StrongholdPieces.StraightStairsDown.

Parameters

  • StructurePieceAccessor structurePieceAccessor
  • RandomSource randomSource
  • int i
  • int j
  • int k
  • Direction direction
  • int l

ตัวอย่างใช้งาน

StructurePieceAccessor structurePieceAccessor = ...;
RandomSource randomSource = ...;
Direction direction = ...;
StrongholdPieces.StraightStairsDown result = StrongholdPieces.StraightStairsDown.createPiece(structurePieceAccessor, randomSource, 0, 0, 0, direction, 0);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StraightStairsDown#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1373
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ StrongholdPieces$StraightStairsDown

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: generateBox(), generateSmallDoor(), defaultBlockState(), setValue(), placeBlock().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

StrongholdPieces.StraightStairsDown instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StraightStairsDown#StraightStairsDown(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1355
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.StraightStairsDown ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
StrongholdPieces.StraightStairsDown instance = new StrongholdPieces.StraightStairsDown(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$StraightStairsDown#StraightStairsDown(int,RandomSource,BoundingBox,Direction)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1349
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.StraightStairsDown ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entryDoor. เรียกต่อ: setOrientation(), randomSmallDoor().

Parameters

  • int i
  • RandomSource randomSource
  • BoundingBox boundingBox
  • Direction direction

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
Direction direction = ...;
StrongholdPieces.StraightStairsDown instance = new StrongholdPieces.StraightStairsDown(0, randomSource, boundingBox, direction);

StrongholdPieces$Turn

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Turn
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java
  • Type: class
  • Modifiers: public abstract static
  • Extends: StrongholdPieces.StrongholdPiece

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Turn#Turn(StructurePieceType,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1682
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.Turn ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • StructurePieceType structurePieceType
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceType structurePieceType = ...;
CompoundTag compoundTag = ...;
StrongholdPieces.Turn instance = new StrongholdPieces.Turn(structurePieceType, compoundTag);

net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces$Turn#Turn(StructurePieceType,int,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdPieces.java:1678
  • Modifiers: protected
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdPieces.Turn ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • StructurePieceType structurePieceType
  • int i
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

StructurePieceType structurePieceType = ...;
BoundingBox boundingBox = ...;
StrongholdPieces.Turn instance = new StrongholdPieces.Turn(structurePieceType, 0, boundingBox);

StrongholdStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.StrongholdStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/StrongholdStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.StrongholdStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdStructure.java:18
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

เรียกต่อ: of(), GenerationStub(), chunkPos(), getWorldPosition(), generatePieces(). สร้างออบเจ็กต์: Structure.GenerationStub.

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

StrongholdStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.StrongholdStructure#StrongholdStructure(Structure.StructureSettings)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdStructure.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StrongholdStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Structure.StructureSettings structureSettings

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
StrongholdStructure instance = new StrongholdStructure(structureSettings);

net.minecraft.world.level.levelgen.structure.structures.StrongholdStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/StrongholdStructure.java:54
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ StrongholdStructure

ทำงานยังไง

คืนค่า: StructureType.STRONGHOLD.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

StrongholdStructure instance = ...;
StructureType<?> result = instance.type();

SwampHutPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.SwampHutPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/SwampHutPiece.java
  • Type: class
  • Modifiers: public
  • Extends: ScatteredFeaturePiece

net.minecraft.world.level.levelgen.structure.structures.SwampHutPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/SwampHutPiece.java:39
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putBoolean().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.SwampHutPiece#postProcess(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/SwampHutPiece.java:46
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ postProcess ตาม implementation ของ SwampHutPiece

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: spawnedWitch. เรียกต่อ: updateAverageGroundHeight(), generateBox(), defaultBlockState(), placeBlock(), setValue(), fillColumnDown(), getWorldPos(), isInside().

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • BlockPos blockPos

ตัวอย่างใช้งาน

SwampHutPiece instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
BlockPos blockPos = ...;
instance.postProcess(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, blockPos);

net.minecraft.world.level.levelgen.structure.structures.SwampHutPiece#SwampHutPiece(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/SwampHutPiece.java:33
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ SwampHutPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: spawnedWitch, spawnedCat. เรียกต่อ: getBoolean().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
SwampHutPiece instance = new SwampHutPiece(compoundTag);

net.minecraft.world.level.levelgen.structure.structures.SwampHutPiece#SwampHutPiece(RandomSource,int,int)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/SwampHutPiece.java:29
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ SwampHutPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getRandomHorizontalDirection().

Parameters

  • RandomSource randomSource
  • int i
  • int j

ตัวอย่างใช้งาน

RandomSource randomSource = ...;
SwampHutPiece instance = new SwampHutPiece(randomSource, 0, 0);

SwampHutStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.SwampHutStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/SwampHutStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.SwampHutStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/SwampHutStructure.java:17
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

เรียกต่อ: onTopOfChunkCenter(), generatePieces().

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

SwampHutStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.SwampHutStructure#SwampHutStructure(Structure.StructureSettings)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/SwampHutStructure.java:13
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ SwampHutStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Structure.StructureSettings structureSettings

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
SwampHutStructure instance = new SwampHutStructure(structureSettings);

net.minecraft.world.level.levelgen.structure.structures.SwampHutStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/SwampHutStructure.java:30
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ SwampHutStructure

ทำงานยังไง

คืนค่า: StructureType.SWAMP_HUT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

SwampHutStructure instance = ...;
StructureType<?> result = instance.type();

WoodlandMansionPieces

  • Full name: net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/WoodlandMansionPieces.java
  • Type: class
  • Modifiers: public

net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces#generateMansion(StructureTemplateManager,BlockPos,Rotation,List<WoodlandMansionPieces.WoodlandMansionPiece>,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/WoodlandMansionPieces.java:35
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ generateMansion ตาม implementation ของ WoodlandMansionPieces

ทำงานยังไง

เรียกต่อ: MansionGrid(), MansionPiecePlacer(), createMansion(). สร้างออบเจ็กต์: WoodlandMansionPieces.MansionGrid, WoodlandMansionPieces.MansionPiecePlacer.

Parameters

  • StructureTemplateManager structureTemplateManager
  • BlockPos blockPos
  • Rotation rotation
  • List<WoodlandMansionPieces.WoodlandMansionPiece> list
  • RandomSource randomSource

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
List<WoodlandMansionPieces.WoodlandMansionPiece> list = ...;
RandomSource randomSource = ...;
WoodlandMansionPieces.generateMansion(structureTemplateManager, blockPos, rotation, list, randomSource);

WoodlandMansionPieces$WoodlandMansionPiece

  • Full name: net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces$WoodlandMansionPiece
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/WoodlandMansionPieces.java
  • Type: class
  • Modifiers: public static
  • Extends: TemplateStructurePiece

net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces$WoodlandMansionPiece#addAdditionalSaveData(StructurePieceSerializationContext,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/WoodlandMansionPieces.java:1209
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putString(), getRotation(), name(), getMirror().

Parameters

  • StructurePieceSerializationContext structurePieceSerializationContext
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructurePieceSerializationContext structurePieceSerializationContext = ...;
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(StructurePieceSerializationContext structurePieceSerializationContext, CompoundTag compoundTag) {
    super.addAdditionalSaveData(structurePieceSerializationContext, compoundTag);
}

net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces$WoodlandMansionPiece#handleDataMarker(String,BlockPos,ServerLevelAccessor,RandomSource,BoundingBox)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/WoodlandMansionPieces.java:1216
  • Modifiers: protected
  • Return: void

คืออะไร

จัดการ Data Marker

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: startsWith(), getRotation(), defaultBlockState(), equals(), setValue(), rotate(), createChest(), add(). สร้างออบเจ็กต์: ArrayList<>.

Parameters

  • String string
  • BlockPos blockPos
  • ServerLevelAccessor serverLevelAccessor
  • RandomSource randomSource
  • BoundingBox boundingBox

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerLevelAccessor serverLevelAccessor = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
@Override
protected void handleDataMarker(String string, BlockPos blockPos, ServerLevelAccessor serverLevelAccessor, RandomSource randomSource, BoundingBox boundingBox) {
    super.handleDataMarker(string, blockPos, serverLevelAccessor, randomSource, boundingBox);
}

net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces$WoodlandMansionPiece#makeTemplateLocation()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/WoodlandMansionPieces.java:1196
  • Modifiers: protected
  • Return: ResourceLocation

คืออะไร

สร้าง Template Location

ทำงานยังไง

เรียกต่อ: makeLocation(). คืนค่า: makeLocation(this.templateName).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected ResourceLocation makeTemplateLocation() {
    return super.makeTemplateLocation();
}

net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces$WoodlandMansionPiece#WoodlandMansionPiece(StructureTemplateManager,CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/WoodlandMansionPieces.java:1187
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ WoodlandMansionPieces.WoodlandMansionPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: makeSettings(), valueOf(), getString().

Parameters

  • StructureTemplateManager structureTemplateManager
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
CompoundTag compoundTag = ...;
WoodlandMansionPieces.WoodlandMansionPiece instance = new WoodlandMansionPieces.WoodlandMansionPiece(structureTemplateManager, compoundTag);

net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces$WoodlandMansionPiece#WoodlandMansionPiece(StructureTemplateManager,String,BlockPos,Rotation)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/WoodlandMansionPieces.java:1179
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ WoodlandMansionPieces.WoodlandMansionPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • StructureTemplateManager structureTemplateManager
  • String string
  • BlockPos blockPos
  • Rotation rotation

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
WoodlandMansionPieces.WoodlandMansionPiece instance = new WoodlandMansionPieces.WoodlandMansionPiece(structureTemplateManager, "value", blockPos, rotation);

net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionPieces$WoodlandMansionPiece#WoodlandMansionPiece(StructureTemplateManager,String,BlockPos,Rotation,Mirror)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/WoodlandMansionPieces.java:1183
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ WoodlandMansionPieces.WoodlandMansionPiece ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: makeLocation(), makeSettings().

Parameters

  • StructureTemplateManager structureTemplateManager
  • String string
  • BlockPos blockPos
  • Rotation rotation
  • Mirror mirror

ตัวอย่างใช้งาน

StructureTemplateManager structureTemplateManager = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
Mirror mirror = ...;
WoodlandMansionPieces.WoodlandMansionPiece instance = new WoodlandMansionPieces.WoodlandMansionPiece(structureTemplateManager, "value", blockPos, rotation, mirror);

WoodlandMansionStructure

  • Full name: net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionStructure
  • Package: net.minecraft.world.level.levelgen.structure.structures
  • Source: commonnet/minecraft/world/level/levelgen/structure/structures/WoodlandMansionStructure.java
  • Type: class
  • Modifiers: public
  • Extends: Structure

net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionStructure#afterPlace(WorldGenLevel,StructureManager,ChunkGenerator,RandomSource,BoundingBox,ChunkPos,PiecesContainer)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/WoodlandMansionStructure.java:45
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ afterPlace ตาม implementation ของ WoodlandMansionStructure

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: MutableBlockPos(), getMinY(), calculateBoundingBox(), minY(), minX(), maxX(), minZ(), maxZ(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos.

Parameters

  • WorldGenLevel worldGenLevel
  • StructureManager structureManager
  • ChunkGenerator chunkGenerator
  • RandomSource randomSource
  • BoundingBox boundingBox
  • ChunkPos chunkPos
  • PiecesContainer piecesContainer

ตัวอย่างใช้งาน

WoodlandMansionStructure instance = ...;
WorldGenLevel worldGenLevel = ...;
StructureManager structureManager = ...;
ChunkGenerator chunkGenerator = ...;
RandomSource randomSource = ...;
BoundingBox boundingBox = ...;
ChunkPos chunkPos = ...;
PiecesContainer piecesContainer = ...;
instance.afterPlace(worldGenLevel, structureManager, chunkGenerator, randomSource, boundingBox, chunkPos, piecesContainer);

net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionStructure#findGenerationPoint(Structure.GenerationContext)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/WoodlandMansionStructure.java:28
  • Modifiers: public
  • Return: Optional<Structure.GenerationStub>

คืออะไร

ค้นหา Generation Point

ทำงานยังไง

เรียกต่อ: getRandom(), random(), getLowestYIn5by5BoxOffset7Blocks(), getY(), empty(), of(), GenerationStub(), generatePieces(). สร้างออบเจ็กต์: Structure.GenerationStub.

Parameters

  • Structure.GenerationContext generationContext

ตัวอย่างใช้งาน

WoodlandMansionStructure instance = ...;
Structure.GenerationContext generationContext = ...;
Optional<Structure.GenerationStub> result = instance.findGenerationPoint(generationContext);

net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionStructure#type()

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/WoodlandMansionStructure.java:77
  • Modifiers: public
  • Return: StructureType<?>

คืออะไร

ดำเนินการ type ตาม implementation ของ WoodlandMansionStructure

ทำงานยังไง

คืนค่า: StructureType.WOODLAND_MANSION.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

WoodlandMansionStructure instance = ...;
StructureType<?> result = instance.type();

net.minecraft.world.level.levelgen.structure.structures.WoodlandMansionStructure#WoodlandMansionStructure(Structure.StructureSettings)

  • Origin: common
  • Source: net/minecraft/world/level/levelgen/structure/structures/WoodlandMansionStructure.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ WoodlandMansionStructure ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Structure.StructureSettings structureSettings

ตัวอย่างใช้งาน

Structure.StructureSettings structureSettings = ...;
WoodlandMansionStructure instance = new WoodlandMansionStructure(structureSettings);