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

    Fields
    Modifier and Type
    Field
    Description
    protected Set<net.minecraft.util.math.ChunkPos>
     
    protected net.minecraft.util.Identifier
     

    Fields inherited from class net.minecraft.structure.StructurePiece

    AIR, boundingBox, chainLength
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    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(net.minecraft.structure.StructurePieceType pieceType, net.minecraft.nbt.NbtCompound nbtCompound)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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.
    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 void
    writeNbt(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • featureId

      protected net.minecraft.util.Identifier featureId
    • chunkPosSet

      protected Set<net.minecraft.util.math.ChunkPos> 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:
      writeNbt in class net.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:
      generate in class net.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 use getStructurePair(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>,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)