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 ClassesModifier and TypeClassDescriptionclassThis is a wrapper class, which wraps around aBlockand pairs with it the metadata for that specific blockState instance.static interfaceNested 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, widthFields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWorldStructurePieceQuarterSymmetrical(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) protectedWorldStructurePieceQuarterSymmetrical(net.minecraft.world.level.levelgen.structure.pieces.StructurePieceType structurePieceTypeIn, net.minecraft.nbt.CompoundTag nbt) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddLayer(int height, WorldStructurePieceQuarterSymmetrical.BlockWrapper[] layer) protected voidbuildCorner(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos blockPos, int incX, int incZ) protected abstract voidprotected abstract intprotected abstract intprotected voidpostBuildCorner(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, int incX, int incZ) voidpostProcess(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, updateHeightPositionToLowestGroundHeightMethods 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
-
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
-
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:
postProcessin classnet.minecraft.world.level.levelgen.structure.StructurePiece
-