net.minecraft.world.level.levelgen.structure

public abstract class StructurePiece

eiq
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.slf4j.Logger
a
LOGGER
field_29327
LOGGER
f_163536_
protected static final BlockState
e
CAVE_AIR
field_15314
AIR
f_73382_
protected BoundingBox
f
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
g
genDepth
field_15316
chainLength
f_73384_
private final StructurePieceType
h
type
field_16712
type
f_73380_
private static final Set<Block>
i
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, je 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
a(azh arg0)
getRandomHorizontalDirection(RandomSource arg0)
method_35457(class_5819 arg0)
getRandomHorizontalDirection(Random random)
m_226760_(C_212974_ p_226761_)
public final CompoundTag
a(ejc arg0)
createTag(StructurePieceSerializationContext arg0)
method_14946(class_6625 arg0)
toNbt(StructureContext context)
m_192644_(C_183029_ arg0)
protected abstract void
a(ejc arg0, us arg1)
addAdditionalSaveData(StructurePieceSerializationContext arg0, CompoundTag arg1)
method_14943(class_6625 arg0, class_2487 arg1)
writeNbt(StructureContext context, NbtCompound nbt)
m_183620_(C_183029_ p_192647_, C_4917_ arg1)
public void
a(eiq arg0, eir arg1, azh arg2)
addChildren(StructurePiece arg0, StructurePieceAccessor arg1, RandomSource arg2)
method_14918(class_3443 arg0, class_6130 arg1, class_5819 arg2)
fillOpenings(StructurePiece start, StructurePiecesHolder holder, Random random)
m_214092_(C_2585_ p_226836_, C_141423_ p_226837_, C_212974_ arg2)
public abstract void
a(dcv arg0, dct arg1, dub arg2, azh arg3, eie arg4, dbh arg5, iz arg6)
postProcess(WorldGenLevel arg0, StructureManager arg1, ChunkGenerator arg2, RandomSource arg3, BoundingBox arg4, ChunkPos arg5, BlockPos arg6)
method_14931(class_5281 arg0, class_5138 arg1, class_2794 arg2, class_5819 arg3, class_3341 arg4, class_1923 arg5, class_2338 arg6)
generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos, BlockPos pivot)
m_213694_(C_1625_ p_226770_, C_213086_ p_226771_, C_2118_ p_226772_, C_212974_ p_226773_, C_2478_ p_226774_, C_1560_ p_226775_, C_4675_ arg6)
public BoundingBox
f()
getBoundingBox()
method_14935()
getBoundingBox()
m_73547_()
public int
g()
getGenDepth()
method_14923()
getChainLength()
m_73548_()
public void
a(int arg0)
setGenDepth(int arg0)
method_41620(int arg0)
setChainLength(int chainLength)
m_226758_(int arg0)
public boolean
a(dbh 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
h()
getLocatorPosition()
method_35458()
getCenter()
m_142171_()
protected BlockPos$MutableBlockPos
b(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
b(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
a(dcv arg0, dse arg1, int arg2, int arg3, int arg4, eie 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(dcd arg0, int arg1, int arg2, int arg3, eie 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(dbg arg0, int arg1, int arg2, int arg3, eie 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(dcd arg0, int arg1, int arg2, int arg3, eie 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
a(dcv arg0, eie 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(dcv arg0, eie arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, dse arg8, dse 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(dcv arg0, eie arg1, eie arg2, dse arg3, dse 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(dcv arg0, eie arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8, azh arg9, eiq$a arg10)
generateBox(WorldGenLevel arg0, BoundingBox arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8, RandomSource 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, class_5819 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_226776_(C_1625_ p_226778_, C_2478_ p_226779_, int p_226780_, int p_226781_, int p_226782_, int p_226783_, int p_226784_, int p_226785_, boolean p_226786_, C_212974_ p_226787_, C_2585_$C_2587_ arg10)
protected void
a(dcv arg0, eie arg1, eie arg2, boolean arg3, azh arg4, eiq$a arg5)
generateBox(WorldGenLevel arg0, BoundingBox arg1, BoundingBox arg2, boolean arg3, RandomSource arg4, StructurePiece$BlockSelector arg5)
method_35456(class_5281 arg0, class_3341 arg1, class_3341 arg2, boolean arg3, class_5819 arg4, class_3443$class_3444 arg5)
fillWithOutline(StructureWorldAccess world, BlockBox box, BlockBox fillBox, boolean cantReplaceAir, Random random, StructurePiece$BlockRandomizer randomizer)
m_226828_(C_1625_ p_226830_, C_2478_ p_226831_, C_2478_ p_226832_, boolean p_226833_, C_212974_ p_226834_, C_2585_$C_2587_ arg5)
protected void
a(dcv arg0, eie arg1, azh arg2, float arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, dse arg10, dse arg11, boolean arg12, boolean arg13)
generateMaybeBox(WorldGenLevel arg0, BoundingBox arg1, RandomSource 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, class_5819 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_226788_(C_1625_ p_226790_, C_2478_ p_226791_, C_212974_ p_226792_, float p_226793_, int p_226794_, int p_226795_, int p_226796_, int p_226797_, int p_226798_, int p_226799_, C_2064_ p_226800_, C_2064_ p_226801_, boolean p_226802_, boolean arg13)
protected void
a(dcv arg0, eie arg1, azh arg2, float arg3, int arg4, int arg5, int arg6, dse arg7)
maybeGenerateBlock(WorldGenLevel arg0, BoundingBox arg1, RandomSource arg2, float arg3, int arg4, int arg5, int arg6, BlockState arg7)
method_14945(class_5281 arg0, class_3341 arg1, class_5819 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_226803_(C_1625_ p_226805_, C_2478_ p_226806_, C_212974_ p_226807_, float p_226808_, int p_226809_, int p_226810_, int p_226811_, C_2064_ arg7)
protected void
a(dcv arg0, eie arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, dse 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
b(dcv arg0, dse arg1, int arg2, int arg3, int arg4, eie 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(dse arg0)
isReplaceableByStructures(BlockState arg0)
method_33881(class_2680 arg0)
canReplace(BlockState state)
m_163572_(C_2064_ arg0)
protected boolean
a(dcv arg0, eie arg1, azh arg2, int arg3, int arg4, int arg5, ale<eqp> arg6)
createChest(WorldGenLevel arg0, BoundingBox arg1, RandomSource arg2, int arg3, int arg4, int arg5, ResourceKey<LootTable> arg6)
method_14915(class_5281 arg0, class_3341 arg1, class_5819 arg2, int arg3, int arg4, int arg5, class_5321<class_52> arg6)
addChest(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, RegistryKey<LootTable> lootTable)
m_213787_(C_1625_ p_226813_, C_2478_ p_226814_, C_212974_ p_226815_, int p_226816_, int p_226817_, int p_333539_, C_5264_<C_2822_> arg6)
public static BlockState
a(dbg arg0, iz arg1, dse 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(dcp arg0, eie arg1, azh arg2, iz arg3, ale<eqp> arg4, dse arg5)
createChest(ServerLevelAccessor arg0, BoundingBox arg1, RandomSource arg2, BlockPos arg3, ResourceKey<LootTable> arg4, BlockState arg5)
method_14921(class_5425 arg0, class_3341 arg1, class_5819 arg2, class_2338 arg3, class_5321<class_52> arg4, class_2680 arg5)
addChest(ServerWorldAccess world, BlockBox boundingBox, Random random, BlockPos pos, RegistryKey<LootTable> lootTable, BlockState block)
m_226762_(C_1618_ p_226764_, C_2478_ p_226765_, C_212974_ p_226766_, C_4675_ p_328482_, C_5264_<C_2822_> p_226768_, C_2064_ arg5)
protected boolean
a(dcv arg0, eie arg1, azh arg2, int arg3, int arg4, int arg5, je arg6, ale<eqp> arg7)
createDispenser(WorldGenLevel arg0, BoundingBox arg1, RandomSource arg2, int arg3, int arg4, int arg5, Direction arg6, ResourceKey<LootTable> arg7)
method_14930(class_5281 arg0, class_3341 arg1, class_5819 arg2, int arg3, int arg4, int arg5, class_2350 arg6, class_5321<class_52> arg7)
addDispenser(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Direction facing, RegistryKey<LootTable> lootTable)
m_226819_(C_1625_ p_226821_, C_2478_ p_226822_, C_212974_ p_226823_, int p_226824_, int p_226825_, int p_226826_, C_4687_ p_327917_, C_5264_<C_2822_> 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 static BoundingBox
a(Stream<eiq> arg0)
createBoundingBox(Stream<StructurePiece> arg0)
method_38703(Stream<class_3443> arg0)
boundingBox(Stream<StructurePiece> pieces)
m_192651_(Stream<C_2585_> p_192652_)
public static StructurePiece
a(List<eiq> arg0, eie arg1)
findCollisionPiece(List<StructurePiece> arg0, BoundingBox arg1)
method_38702(List<class_3443> arg0, class_3341 arg1)
firstIntersecting(List<StructurePiece> pieces, BlockBox box)
m_192648_(List<C_2585_> p_192649_, C_2478_ p_192650_)
public Direction
i()
getOrientation()
method_14934()
getFacing()
m_73549_()
public void
a(je arg0)
setOrientation(Direction arg0)
method_14926(class_2350 arg0)
setOrientation(Direction orientation)
m_73519_(C_4687_ arg0)
public Rotation
a()
getRotation()
method_16888()
getRotation()
m_6830_()
public Mirror
j()
getMirror()
method_35460()
getMirror()
m_163587_()
public StructurePieceType
k()
getType()
method_16653()
getType()
m_210000_()