Class WorldStructurePieceQuarterSymmetrical

java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.ScatteredFeaturePiece
org.cyclops.evilcraft.world.gen.structure.WorldStructurePieceQuarterSymmetrical
Direct Known Subclasses:
WorldStructureDarkTemple.Piece

public abstract class WorldStructurePieceQuarterSymmetrical extends net.minecraft.world.level.levelgen.structure.ScatteredFeaturePiece
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    This is a wrapper class, which wraps around a Block and pairs with it the metadata for that specific blockState instance.
    static interface 
     

    Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece

    net.minecraft.world.level.levelgen.structure.StructurePiece.BlockSelector
  • Field Summary

    Fields inherited from class net.minecraft.world.level.levelgen.structure.ScatteredFeaturePiece

    depth, height, heightPosition, width

    Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece

    boundingBox, CAVE_AIR, genDepth
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    WorldStructurePieceQuarterSymmetrical(net.minecraft.world.level.levelgen.structure.pieces.StructurePieceType structurePieceTypeIn, int xIn, int yIn, int zIn, int widthIn, int heightIn, int depthIn, net.minecraft.core.Direction direction)
     
    protected
    WorldStructurePieceQuarterSymmetrical(net.minecraft.world.level.levelgen.structure.pieces.StructurePieceType structurePieceTypeIn, net.minecraft.nbt.CompoundTag nbt)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    buildCorner(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos blockPos, int incX, int incZ)
     
    protected abstract void
     
    protected abstract int
     
    protected abstract int
     
    protected void
    postBuildCorner(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, int incX, int incZ)
     
    void
    postProcess(net.minecraft.world.level.WorldGenLevel world, net.minecraft.world.level.StructureManager structureManager, net.minecraft.world.level.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.RandomSource rand, net.minecraft.world.level.levelgen.structure.BoundingBox bounds, net.minecraft.world.level.ChunkPos chunkPos, net.minecraft.core.BlockPos pos)
     

    Methods inherited from class net.minecraft.world.level.levelgen.structure.ScatteredFeaturePiece

    addAdditionalSaveData, updateAverageGroundHeight, updateHeightPositionToLowestGroundHeight

    Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece

    addChildren, canBeReplaced, createBoundingBox, createChest, createChest, createDispenser, createTag, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getLocatorPosition, getMirror, getOrientation, getRandomHorizontalDirection, getRotation, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, move, placeBlock, reorient, setGenDepth, setOrientation

    Methods inherited from class java.lang.Object

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

    • WorldStructurePieceQuarterSymmetrical

      protected WorldStructurePieceQuarterSymmetrical(net.minecraft.world.level.levelgen.structure.pieces.StructurePieceType structurePieceTypeIn, int xIn, int yIn, int zIn, int widthIn, int heightIn, int depthIn, net.minecraft.core.Direction direction)
    • WorldStructurePieceQuarterSymmetrical

      protected WorldStructurePieceQuarterSymmetrical(net.minecraft.world.level.levelgen.structure.pieces.StructurePieceType structurePieceTypeIn, net.minecraft.nbt.CompoundTag nbt)
  • Method Details

    • getQuarterWidth

      protected abstract int getQuarterWidth()
    • getQuarterHeight

      protected abstract int getQuarterHeight()
    • generateLayers

      protected abstract void generateLayers()
    • addLayer

      protected void addLayer(int height, WorldStructurePieceQuarterSymmetrical.BlockWrapper[] layer)
    • buildCorner

      protected void buildCorner(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos blockPos, int incX, int incZ)
    • postBuildCorner

      protected void postBuildCorner(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, int incX, int incZ)
    • postProcess

      public void postProcess(net.minecraft.world.level.WorldGenLevel world, net.minecraft.world.level.StructureManager structureManager, net.minecraft.world.level.chunk.ChunkGenerator chunkGenerator, net.minecraft.util.RandomSource rand, net.minecraft.world.level.levelgen.structure.BoundingBox bounds, net.minecraft.world.level.ChunkPos chunkPos, net.minecraft.core.BlockPos pos)
      Specified by:
      postProcess in class net.minecraft.world.level.levelgen.structure.StructurePiece