net.minecraft.world.level.levelgen.structure

public abstract class StructurePiece

eqm
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.class_3443
net.minecraft.structure.StructurePiece

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_29327
LOGGER
protected static final BlockState
e
CAVE_AIR
field_15314
AIR
protected BoundingBox
f
boundingBox
field_15315
boundingBox
private Direction
b
orientation
field_15312
facing
private Mirror
c
mirror
field_15310
mirror
private Rotation
d
rotation
field_15313
rotation
protected int
g
genDepth
field_15316
chainLength
private final StructurePieceType
h
type
field_16712
type
private static final Set<Block>
i
SHAPE_CHECK_BLOCKS
field_15311
BLOCKS_NEEDING_POST_PROCESSING

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, ja 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)
protected static Direction
a(azt arg0)
getRandomHorizontalDirection(RandomSource arg0)
method_35457(class_5819 arg0)
getRandomHorizontalDirection(Random random)
public final CompoundTag
a(eqy arg0)
createTag(StructurePieceSerializationContext arg0)
method_14946(class_6625 arg0)
toNbt(StructureContext context)
protected abstract void
a(eqy arg0, tx arg1)
addAdditionalSaveData(StructurePieceSerializationContext arg0, CompoundTag arg1)
method_14943(class_6625 arg0, class_2487 arg1)
writeNbt(StructureContext context, NbtCompound nbt)
public void
a(eqm arg0, eqn arg1, azt 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)
public abstract void
a(djo arg0, djl arg1, ebm arg2, azt arg3, eqa arg4, dhw arg5, iu 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)
public BoundingBox
f()
getBoundingBox()
method_14935()
getBoundingBox()
public int
g()
getGenDepth()
method_14923()
getChainLength()
public void
a(int arg0)
setGenDepth(int arg0)
method_41620(int arg0)
setChainLength(int chainLength)
public boolean
a(dhw arg0, int arg1)
isCloseToChunk(ChunkPos arg0, int arg1)
method_16654(class_1923 arg0, int arg1)
intersectsChunk(ChunkPos pos, int offset)
public BlockPos
h()
getLocatorPosition()
method_35458()
getCenter()
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)
protected int
a(int arg0, int arg1)
getWorldX(int arg0, int arg1)
method_14928(int arg0, int arg1)
applyXTransform(int x, int z)
protected int
b(int arg0)
getWorldY(int arg0)
method_14924(int arg0)
applyYTransform(int y)
protected int
b(int arg0, int arg1)
getWorldZ(int arg0, int arg1)
method_14941(int arg0, int arg1)
applyZTransform(int x, int z)
protected void
a(djo arg0, dzo arg1, int arg2, int arg3, int arg4, eqa 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)
protected boolean
a(dis arg0, int arg1, int arg2, int arg3, eqa 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)
protected BlockState
a(dhv arg0, int arg1, int arg2, int arg3, eqa 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)
protected boolean
b(dis arg0, int arg1, int arg2, int arg3, eqa 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)
protected void
a(djo arg0, eqa 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)
protected void
a(djo arg0, eqa arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, dzo arg8, dzo 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)
protected void
a(djo arg0, eqa arg1, eqa arg2, dzo arg3, dzo 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)
protected void
a(djo arg0, eqa arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8, azt arg9, eqm$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)
protected void
a(djo arg0, eqa arg1, eqa arg2, boolean arg3, azt arg4, eqm$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)
protected void
a(djo arg0, eqa arg1, azt arg2, float arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, dzo arg10, dzo 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)
protected void
a(djo arg0, eqa arg1, azt arg2, float arg3, int arg4, int arg5, int arg6, dzo 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)
protected void
a(djo arg0, eqa arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, dzo 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)
protected void
b(djo arg0, dzo arg1, int arg2, int arg3, int arg4, eqa 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)
protected boolean
a(dzo arg0)
isReplaceableByStructures(BlockState arg0)
method_33881(class_2680 arg0)
canReplace(BlockState state)
protected boolean
a(djo arg0, eqa arg1, azt arg2, int arg3, int arg4, int arg5, ald<eys> 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)
public static BlockState
a(dhv arg0, iu arg1, dzo 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)
protected boolean
a(djg arg0, eqa arg1, azt arg2, iu arg3, ald<eys> arg4, dzo 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)
protected boolean
a(djo arg0, eqa arg1, azt arg2, int arg3, int arg4, int arg5, ja arg6, ald<eys> 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)
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)
public static BoundingBox
a(Stream<eqm> arg0)
createBoundingBox(Stream<StructurePiece> arg0)
method_38703(Stream<class_3443> arg0)
boundingBox(Stream<StructurePiece> pieces)
public static StructurePiece
a(List<eqm> arg0, eqa arg1)
findCollisionPiece(List<StructurePiece> arg0, BoundingBox arg1)
method_38702(List<class_3443> arg0, class_3341 arg1)
firstIntersecting(List<StructurePiece> pieces, BlockBox box)
public Direction
i()
getOrientation()
method_14934()
getFacing()
public void
a(ja arg0)
setOrientation(Direction arg0)
method_14926(class_2350 arg0)
setOrientation(Direction orientation)
public Rotation
a()
getRotation()
method_16888()
getRotation()
public Mirror
j()
getMirror()
method_35460()
getMirror()
public StructurePieceType
k()
getType()
method_16653()
getType()