net.minecraft.world.level.levelgen.structure

public abstract class StructurePiece

dbl
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.class_3443
net.minecraft.structure.StructurePiece
net.minecraft.src.C_2585_
net.minecraft.world.level.levelgen.structure.StructurePiece

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
a
LOGGER
field_29327
LOGGER
f_163536_
protected static final BlockState
z
CAVE_AIR
field_15314
AIR
f_73382_
protected BoundingBox
A
boundingBox
field_15315
boundingBox
f_73383_
private Direction
b
orientation
field_15312
facing
f_73377_
private Mirror
c
mirror
field_15310
mirror
f_73378_
private Rotation
d
rotation
field_15313
rotation
f_73379_
protected int
B
genDepth
field_15316
chainLength
f_73384_
private final StructurePieceType
e
type
field_16712
type
f_73380_
private static final Set<Block>
f
SHAPE_CHECK_BLOCKS
field_15311
BLOCKS_NEEDING_POST_PROCESSING
f_73381_

Constructor summary

ModifierConstructor
protected (StructurePieceType type, int length, BoundingBox boundingBox)
public (StructurePieceType type, CompoundTag nbt)

Method summary

Modifier and TypeMethod
protected static BoundingBox
a(int arg0, int arg1, int arg2, gl arg3, int arg4, int arg5, int arg6)
makeBoundingBox(int arg0, int arg1, int arg2, Direction arg3, int arg4, int arg5, int arg6)
method_35454(int arg0, int arg1, int arg2, class_2350 arg3, int arg4, int arg5, int arg6)
createBox(int x, int y, int z, Direction orientation, int width, int height, int depth)
m_163541_(int p_163542_, int p_163543_, int p_163544_, C_4687_ p_163545_, int p_163546_, int p_163547_, int p_163548_)
protected static Direction
b(Random arg0)
getRandomHorizontalDirection(Random arg0)
method_35457(Random arg0)
getRandomHorizontalDirection(Random random)
m_163580_(Random p_163581_)
public final CompoundTag
a(abr arg0)
createTag(ServerLevel arg0)
method_14946(class_3218 arg0)
toNbt(ServerWorld world)
m_163549_(C_12_ arg0)
protected abstract void
a(abr arg0, na arg1)
addAdditionalSaveData(ServerLevel arg0, CompoundTag arg1)
method_14943(class_3218 arg0, class_2487 arg1)
writeNbt(ServerWorld world, NbtCompound nbt)
m_142347_(C_12_ p_163552_, C_4917_ arg1)
public NoiseEffect
ad_()
getNoiseEffect()
method_33882()
method_33882()
m_142318_()
public void
a(dbl arg0, dbm arg1, Random arg2)
addChildren(StructurePiece arg0, StructurePieceAccessor arg1, Random arg2)
method_14918(class_3443 arg0, class_6130 arg1, Random arg2)
fillOpenings(StructurePiece start, StructurePiecesHolder arg1, Random random)
m_142537_(C_2585_ p_163575_, C_141423_ p_163576_, Random arg2)
public abstract boolean
a(bxk arg0, bxg arg1, cmn arg2, Random arg3, daq arg4, bvu arg5, gg arg6)
postProcess(WorldGenLevel arg0, StructureFeatureManager arg1, ChunkGenerator arg2, Random arg3, BoundingBox arg4, ChunkPos arg5, BlockPos arg6)
method_14931(class_5281 arg0, class_5138 arg1, class_2794 arg2, Random arg3, class_3341 arg4, class_1923 arg5, class_2338 arg6)
generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos pos)
m_7832_(C_1625_ p_73428_, C_1621_ p_73429_, C_2118_ p_73430_, Random p_73431_, C_2478_ p_73432_, C_1560_ p_73433_, C_4675_ arg6)
public BoundingBox
f()
getBoundingBox()
method_14935()
getBoundingBox()
m_73547_()
public int
g()
getGenDepth()
method_14923()
getChainLength()
m_73548_()
public boolean
a(bvu arg0, int arg1)
isCloseToChunk(ChunkPos arg0, int arg1)
method_16654(class_1923 arg0, int arg1)
intersectsChunk(ChunkPos pos, int offset)
m_73411_(C_1560_ p_73413_, int arg1)
public BlockPos
ae_()
getLocatorPosition()
method_35458()
getCenter()
m_142171_()
protected BlockPos$MutableBlockPos
c(int arg0, int arg1, int arg2)
getWorldPos(int arg0, int arg1, int arg2)
method_33781(int arg0, int arg1, int arg2)
offsetPos(int x, int y, int z)
m_163582_(int p_163584_, int p_163585_, int arg2)
protected int
a(int arg0, int arg1)
getWorldX(int arg0, int arg1)
method_14928(int arg0, int arg1)
applyXTransform(int x, int z)
m_73392_(int p_73394_, int arg1)
protected int
a(int arg0)
getWorldY(int arg0)
method_14924(int arg0)
applyYTransform(int y)
m_73544_(int arg0)
protected int
b(int arg0, int arg1)
getWorldZ(int arg0, int arg1)
method_14941(int arg0, int arg1)
applyZTransform(int x, int z)
m_73525_(int p_73527_, int arg1)
protected void
c(bxk arg0, cks arg1, int arg2, int arg3, int arg4, daq arg5)
placeBlock(WorldGenLevel arg0, BlockState arg1, int arg2, int arg3, int arg4, BoundingBox arg5)
method_14917(class_5281 arg0, class_2680 arg1, int arg2, int arg3, int arg4, class_3341 arg5)
addBlock(StructureWorldAccess world, BlockState block, int x, int y, int z, BlockBox box)
m_73434_(C_1625_ p_73436_, C_2064_ p_73437_, int p_73438_, int p_73439_, int p_73440_, C_2478_ arg5)
protected boolean
a(bws arg0, int arg1, int arg2, int arg3, daq arg4)
canBeReplaced(LevelReader arg0, int arg1, int arg2, int arg3, BoundingBox arg4)
method_33780(class_4538 arg0, int arg1, int arg2, int arg3, class_3341 arg4)
canAddBlock(WorldView world, int x, int y, int z, BlockBox box)
m_142085_(C_1599_ p_163554_, int p_163555_, int p_163556_, int p_163557_, C_2478_ arg4)
protected BlockState
a(bvt arg0, int arg1, int arg2, int arg3, daq arg4)
getBlock(BlockGetter arg0, int arg1, int arg2, int arg3, BoundingBox arg4)
method_14929(class_1922 arg0, int arg1, int arg2, int arg3, class_3341 arg4)
getBlockAt(BlockView world, int x, int y, int z, BlockBox box)
m_73398_(C_1559_ p_73400_, int p_73401_, int p_73402_, int p_73403_, C_2478_ arg4)
protected boolean
b(bws arg0, int arg1, int arg2, int arg3, daq arg4)
isInterior(LevelReader arg0, int arg1, int arg2, int arg3, BoundingBox arg4)
method_14939(class_4538 arg0, int arg1, int arg2, int arg3, class_3341 arg4)
isUnderSeaLevel(WorldView world, int x, int z, int y, BlockBox box)
m_73414_(C_1599_ p_73416_, int p_73417_, int p_73418_, int p_73419_, C_2478_ arg4)
protected void
b(bxk arg0, daq arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
generateAirBox(WorldGenLevel arg0, BoundingBox arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
method_14942(class_5281 arg0, class_3341 arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
fill(StructureWorldAccess world, BlockBox bounds, int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
m_73535_(C_1625_ p_73537_, C_2478_ p_73538_, int p_73539_, int p_73540_, int p_73541_, int p_73542_, int p_73543_, int arg7)
protected void
a(bxk arg0, daq arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, cks arg8, cks arg9, boolean arg10)
generateBox(WorldGenLevel arg0, BoundingBox arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, BlockState arg8, BlockState arg9, boolean arg10)
method_14940(class_5281 arg0, class_3341 arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, class_2680 arg8, class_2680 arg9, boolean arg10)
fillWithOutline(StructureWorldAccess world, BlockBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, BlockState outline, BlockState inside, boolean cantReplaceAir)
m_73441_(C_1625_ p_73443_, C_2478_ p_73444_, int p_73445_, int p_73446_, int p_73447_, int p_73448_, int p_73449_, int p_73450_, C_2064_ p_73451_, C_2064_ p_73452_, boolean arg10)
protected void
a(bxk arg0, daq arg1, daq arg2, cks arg3, cks arg4, boolean arg5)
generateBox(WorldGenLevel arg0, BoundingBox arg1, BoundingBox arg2, BlockState arg3, BlockState arg4, boolean arg5)
method_35455(class_5281 arg0, class_3341 arg1, class_3341 arg2, class_2680 arg3, class_2680 arg4, boolean arg5)
fillWithOutline(StructureWorldAccess world, BlockBox box, BlockBox fillBox, BlockState outline, BlockState inside, boolean cantReplaceAir)
m_163558_(C_1625_ p_163560_, C_2478_ p_163561_, C_2478_ p_163562_, C_2064_ p_163563_, C_2064_ p_163564_, boolean arg5)
protected void
a(bxk arg0, daq arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8, Random arg9, dbl$a arg10)
generateBox(WorldGenLevel arg0, BoundingBox arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8, Random arg9, StructurePiece$BlockSelector arg10)
method_14938(class_5281 arg0, class_3341 arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8, Random arg9, class_3443$class_3444 arg10)
fillWithOutline(StructureWorldAccess world, BlockBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, boolean cantReplaceAir, Random random, StructurePiece$BlockRandomizer randomizer)
m_73464_(C_1625_ p_73466_, C_2478_ p_73467_, int p_73468_, int p_73469_, int p_73470_, int p_73471_, int p_73472_, int p_73473_, boolean p_73474_, Random p_73475_, C_2585_$C_2587_ arg10)
protected void
a(bxk arg0, daq arg1, daq arg2, boolean arg3, Random arg4, dbl$a arg5)
generateBox(WorldGenLevel arg0, BoundingBox arg1, BoundingBox arg2, boolean arg3, Random arg4, StructurePiece$BlockSelector arg5)
method_35456(class_5281 arg0, class_3341 arg1, class_3341 arg2, boolean arg3, Random arg4, class_3443$class_3444 arg5)
fillWithOutline(StructureWorldAccess world, BlockBox box, BlockBox fillBox, boolean cantReplaceAir, Random random, StructurePiece$BlockRandomizer randomizer)
m_163565_(C_1625_ p_163567_, C_2478_ p_163568_, C_2478_ p_163569_, boolean p_163570_, Random p_163571_, C_2585_$C_2587_ arg5)
protected void
a(bxk arg0, daq arg1, Random arg2, float arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, cks arg10, cks arg11, boolean arg12, boolean arg13)
generateMaybeBox(WorldGenLevel arg0, BoundingBox arg1, Random arg2, float arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, BlockState arg10, BlockState arg11, boolean arg12, boolean arg13)
method_14933(class_5281 arg0, class_3341 arg1, Random arg2, float arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, class_2680 arg10, class_2680 arg11, boolean arg12, boolean arg13)
fillWithOutlineUnderSeaLevel(StructureWorldAccess world, BlockBox box, Random random, float blockChance, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, BlockState outline, BlockState inside, boolean cantReplaceAir, boolean stayBelowSeaLevel)
m_73476_(C_1625_ p_73478_, C_2478_ p_73479_, Random p_73480_, float p_73481_, int p_73482_, int p_73483_, int p_73484_, int p_73485_, int p_73486_, int p_73487_, C_2064_ p_73488_, C_2064_ p_73489_, boolean p_73490_, boolean arg13)
protected void
a(bxk arg0, daq arg1, Random arg2, float arg3, int arg4, int arg5, int arg6, cks arg7)
maybeGenerateBlock(WorldGenLevel arg0, BoundingBox arg1, Random arg2, float arg3, int arg4, int arg5, int arg6, BlockState arg7)
method_14945(class_5281 arg0, class_3341 arg1, Random arg2, float arg3, int arg4, int arg5, int arg6, class_2680 arg7)
addBlockWithRandomThreshold(StructureWorldAccess world, BlockBox bounds, Random random, float threshold, int x, int y, int z, BlockState state)
m_73491_(C_1625_ p_73493_, C_2478_ p_73494_, Random p_73495_, float p_73496_, int p_73497_, int p_73498_, int p_73499_, C_2064_ arg7)
protected void
a(bxk arg0, daq arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, cks arg8, boolean arg9)
generateUpperHalfSphere(WorldGenLevel arg0, BoundingBox arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, BlockState arg8, boolean arg9)
method_14919(class_5281 arg0, class_3341 arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, class_2680 arg8, boolean arg9)
fillHalfEllipsoid(StructureWorldAccess world, BlockBox bounds, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, BlockState block, boolean cantReplaceAir)
m_73453_(C_1625_ p_73455_, C_2478_ p_73456_, int p_73457_, int p_73458_, int p_73459_, int p_73460_, int p_73461_, int p_73462_, C_2064_ p_73463_, boolean arg9)
protected void
a(bxk arg0, cks arg1, int arg2, int arg3, int arg4, daq arg5)
fillColumnDown(WorldGenLevel arg0, BlockState arg1, int arg2, int arg3, int arg4, BoundingBox arg5)
method_14936(class_5281 arg0, class_2680 arg1, int arg2, int arg3, int arg4, class_3341 arg5)
fillDownwards(StructureWorldAccess world, BlockState state, int x, int y, int z, BlockBox box)
m_73528_(C_1625_ p_73530_, C_2064_ p_73531_, int p_73532_, int p_73533_, int p_73534_, C_2478_ arg5)
protected boolean
a(cks arg0)
isReplaceableByStructures(BlockState arg0)
method_33881(class_2680 arg0)
canReplace(BlockState state)
m_163572_(C_2064_ arg0)
protected boolean
a(bxk arg0, daq arg1, Random arg2, int arg3, int arg4, int arg5, ww arg6)
createChest(WorldGenLevel arg0, BoundingBox arg1, Random arg2, int arg3, int arg4, int arg5, ResourceLocation arg6)
method_14915(class_5281 arg0, class_3341 arg1, Random arg2, int arg3, int arg4, int arg5, class_2960 arg6)
addChest(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Identifier lootTableId)
m_5606_(C_1625_ p_73510_, C_2478_ p_73511_, Random p_73512_, int p_73513_, int p_73514_, int p_73515_, C_5265_ arg6)
public static BlockState
a(bvt arg0, gg arg1, cks arg2)
reorient(BlockGetter arg0, BlockPos arg1, BlockState arg2)
method_14916(class_1922 arg0, class_2338 arg1, class_2680 arg2)
orientateChest(BlockView world, BlockPos pos, BlockState state)
m_73407_(C_1559_ p_73408_, C_4675_ p_73409_, C_2064_ p_73410_)
protected boolean
a(bxd arg0, daq arg1, Random arg2, gg arg3, ww arg4, cks arg5)
createChest(ServerLevelAccessor arg0, BoundingBox arg1, Random arg2, BlockPos arg3, ResourceLocation arg4, BlockState arg5)
method_14921(class_5425 arg0, class_3341 arg1, Random arg2, class_2338 arg3, class_2960 arg4, class_2680 arg5)
addChest(ServerWorldAccess world, BlockBox boundingBox, Random random, BlockPos pos, Identifier lootTableId, BlockState block)
m_73420_(C_1618_ p_73422_, C_2478_ p_73423_, Random p_73424_, C_4675_ p_73425_, C_5265_ p_73426_, C_2064_ arg5)
protected boolean
a(bxk arg0, daq arg1, Random arg2, int arg3, int arg4, int arg5, gl arg6, ww arg7)
createDispenser(WorldGenLevel arg0, BoundingBox arg1, Random arg2, int arg3, int arg4, int arg5, Direction arg6, ResourceLocation arg7)
method_14930(class_5281 arg0, class_3341 arg1, Random arg2, int arg3, int arg4, int arg5, class_2350 arg6, class_2960 arg7)
addDispenser(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Direction facing, Identifier lootTableId)
m_73500_(C_1625_ p_73502_, C_2478_ p_73503_, Random p_73504_, int p_73505_, int p_73506_, int p_73507_, C_4687_ p_73508_, C_5265_ arg7)
public void
a(int arg0, int arg1, int arg2)
move(int arg0, int arg1, int arg2)
method_14922(int arg0, int arg1, int arg2)
translate(int x, int y, int z)
m_6324_(int p_73396_, int p_73397_, int arg2)
public Direction
h()
getOrientation()
method_14934()
getFacing()
m_73549_()
public void
a(gl arg0)
setOrientation(Direction arg0)
method_14926(class_2350 arg0)
setOrientation(Direction orientation)
m_73519_(C_4687_ arg0)
public Rotation
ac_()
getRotation()
method_16888()
getRotation()
m_6830_()
public Mirror
i()
getMirror()
method_35460()
getMirror()
m_163587_()
public StructurePieceType
j()
getType()
method_16653()
getType()
m_73550_()