Class MultiChunkFeaturePiece
java.lang.Object
net.minecraft.structure.StructurePiece
net.rodofire.easierworldcreator.structure.MultiChunkFeaturePiece
public abstract class MultiChunkFeaturePiece
extends net.minecraft.structure.StructurePiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
net.minecraft.structure.StructurePiece.BlockRandomizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<net.minecraft.util.math.ChunkPos> protected net.minecraft.util.IdentifierFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMultiChunkFeaturePiece(net.minecraft.structure.StructurePieceType type, int length, net.minecraft.util.math.BlockBox boundingBox, net.minecraft.util.Identifier featureId, Set<net.minecraft.util.math.ChunkPos> chunkPosSet) MultiChunkFeaturePiece(net.minecraft.structure.StructurePieceType pieceType, net.minecraft.nbt.NbtCompound nbtCompound) -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(net.minecraft.world.StructureWorldAccess world, net.minecraft.world.gen.StructureAccessor structureAccessor, net.minecraft.world.gen.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockBox chunkBox, net.minecraft.util.math.ChunkPos chunkPos, net.minecraft.util.math.BlockPos pivot) abstract voidgenerateBaseStructure(net.minecraft.world.StructureWorldAccess world, net.minecraft.world.gen.StructureAccessor structureAccessor, net.minecraft.world.gen.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockBox chunkBox, net.minecraft.util.math.ChunkPos chunkPos, net.minecraft.util.math.BlockPos pivot) abstract @Nullable DividedBlockListManagergetDividedStructure(net.minecraft.world.StructureWorldAccess world, net.minecraft.world.gen.StructureAccessor structureAccessor, net.minecraft.world.gen.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockBox chunkBox, net.minecraft.util.math.ChunkPos chunkPos, net.minecraft.util.math.BlockPos pivot) Method to get the divided blockList manager.abstract @Nullable net.minecraft.util.Pair<Map<net.minecraft.util.math.ChunkPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet>, LayerManager> getStructurePair(net.minecraft.world.StructureWorldAccess world, net.minecraft.world.gen.StructureAccessor structureAccessor, net.minecraft.world.gen.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockBox chunkBox, net.minecraft.util.math.ChunkPos chunkPos, net.minecraft.util.math.BlockPos pivot) protected voidwriteNbt(net.minecraft.structure.StructureContext context, net.minecraft.nbt.NbtCompound nbt) Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, boundingBox, canAddBlock, canReplace, createBox, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, firstIntersecting, getBlockAt, getBoundingBox, getCenter, getChainLength, getFacing, getMirror, getRandomHorizontalDirection, getRotation, getType, intersectsChunk, isUnderSeaLevel, offsetPos, orientateChest, setChainLength, setOrientation, toNbt, translate
-
Field Details
-
featureId
protected net.minecraft.util.Identifier featureId -
chunkPosSet
-
-
Constructor Details
-
MultiChunkFeaturePiece
protected MultiChunkFeaturePiece(net.minecraft.structure.StructurePieceType type, int length, net.minecraft.util.math.BlockBox boundingBox, net.minecraft.util.Identifier featureId, Set<net.minecraft.util.math.ChunkPos> chunkPosSet) -
MultiChunkFeaturePiece
public MultiChunkFeaturePiece(net.minecraft.structure.StructurePieceType pieceType, net.minecraft.nbt.NbtCompound nbtCompound)
-
-
Method Details
-
writeNbt
protected void writeNbt(net.minecraft.structure.StructureContext context, net.minecraft.nbt.NbtCompound nbt) - Specified by:
writeNbtin classnet.minecraft.structure.StructurePiece
-
generate
public void generate(net.minecraft.world.StructureWorldAccess world, net.minecraft.world.gen.StructureAccessor structureAccessor, net.minecraft.world.gen.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockBox chunkBox, net.minecraft.util.math.ChunkPos chunkPos, net.minecraft.util.math.BlockPos pivot) - Specified by:
generatein classnet.minecraft.structure.StructurePiece
-
getDividedStructure
@Nullable public abstract @Nullable DividedBlockListManager getDividedStructure(net.minecraft.world.StructureWorldAccess world, net.minecraft.world.gen.StructureAccessor structureAccessor, net.minecraft.world.gen.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockBox chunkBox, net.minecraft.util.math.ChunkPos chunkPos, net.minecraft.util.math.BlockPos pivot) Method to get the divided blockList manager. If you don't need to provide a DividedBlockListManager, you can usegetStructurePair(StructureWorldAccess, StructureAccessor, ChunkGenerator, Random, BlockBox, ChunkPos, BlockPos) -
getStructurePair
@Nullable public abstract @Nullable net.minecraft.util.Pair<Map<net.minecraft.util.math.ChunkPos,it.unimi.dsi.fastutil.longs.LongOpenHashSet>, getStructurePairLayerManager> (net.minecraft.world.StructureWorldAccess world, net.minecraft.world.gen.StructureAccessor structureAccessor, net.minecraft.world.gen.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockBox chunkBox, net.minecraft.util.math.ChunkPos chunkPos, net.minecraft.util.math.BlockPos pivot) -
generateBaseStructure
public abstract void generateBaseStructure(net.minecraft.world.StructureWorldAccess world, net.minecraft.world.gen.StructureAccessor structureAccessor, net.minecraft.world.gen.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockBox chunkBox, net.minecraft.util.math.ChunkPos chunkPos, net.minecraft.util.math.BlockPos pivot)
-