net.minecraft.world.level.levelgen.structure

public abstract class Structure

dlb
net.minecraft.world.level.levelgen.structure.Structure
net.minecraft.class_3195
net.minecraft.world.gen.structure.Structure
net.minecraft.src.C_213164_
net.minecraft.world.level.levelgen.structure.Structure

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Structure>
a
DIRECT_CODEC
field_37744
STRUCTURE_CODEC
f_226553_
public static final com.mojang.serialization.Codec<Holder<Structure>>
b
CODEC
field_37745
ENTRY_CODEC
f_226554_
protected final Structure$StructureSettings
c
settings
field_38429
config
f_226555_

Constructor summary

ModifierConstructor
protected (Structure$StructureSettings config)

Method summary

Modifier and TypeMethod
public static <S extends Structure> com.mojang.serialization.codecs.RecordCodecBuilder<S, Structure$StructureSettings>
a(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<S> arg0)
settingsCodec(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<S> arg0)
method_42697(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<S> arg0)
configCodecBuilder(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<S> instance)
m_226567_(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<S> p_226568_)
public static <S extends Structure> com.mojang.serialization.Codec<S>
a(Function<dlb$c, S> arg0)
simpleCodec(Function<Structure$StructureSettings, S> arg0)
method_42699(Function<class_3195$class_7302, S> arg0)
createCodec(Function<Structure$Config, S> featureCreator)
m_226607_(Function<C_213164_$C_213167_, S> p_226608_)
public HolderSet<Biome>
a()
biomes()
method_41607()
getValidBiomes()
m_226559_()
public Map<MobCategory, StructureSpawnOverride>
b()
spawnOverrides()
method_41615()
getStructureSpawns()
m_226612_()
public GenerationStep$Decoration
c()
step()
method_41616()
getFeatureGenerationStep()
m_226619_()
public TerrainAdjustment
d()
terrainAdaptation()
method_42701()
getTerrainAdaptation()
m_226620_()
public BoundingBox
a(dkt arg0)
adjustBoundingBox(BoundingBox arg0)
method_41609(class_3341 arg0)
expandBoxIfShouldAdaptNoise(BlockBox box)
m_226569_(C_2478_ arg0)
public StructureStart
a(hn arg0, cxk arg1, chx arg2, dbf arg3, dou arg4, long arg5, cge arg6, int arg7, cgz arg8, Predicate<hc<cht>> arg9)
generate(RegistryAccess arg0, ChunkGenerator arg1, BiomeSource arg2, RandomState arg3, StructureTemplateManager arg4, long arg5, ChunkPos arg6, int arg7, LevelHeightAccessor arg8, Predicate<Holder<Biome>> arg9)
method_41614(class_5455 arg0, class_2794 arg1, class_1966 arg2, class_7138 arg3, class_3485 arg4, long arg5, class_1923 arg6, int arg7, class_5539 arg8, Predicate<class_6880<class_1959>> arg9)
createStructureStart(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, StructureTemplateManager structureTemplateManager, long seed, ChunkPos chunkPos, int references, HeightLimitView world, Predicate<RegistryEntry<Biome>> validBiomes)
m_226596_(C_4706_ p_226598_, C_2118_ p_226599_, C_1644_ p_226600_, C_213138_ p_226601_, C_213305_ p_226602_, long p_226603_, C_1560_ p_226605_, int p_226606_, C_141183_ arg8, Predicate<C_203228_<C_1629_>> arg9)
protected static Optional<Structure$GenerationStub>
a(dlb$a arg0, dar$a arg1, Consumer<dlt> arg2)
onTopOfChunkCenter(Structure$GenerationContext arg0, Heightmap$Types arg1, Consumer<StructurePiecesBuilder> arg2)
method_41612(class_3195$class_7149 arg0, class_2902$class_2903 arg1, Consumer<class_6626> arg2)
getStructurePosition(Structure$Context context, Heightmap$Type heightmap, Consumer<StructurePiecesCollector> generator)
m_226585_(C_213164_$C_213165_ p_226586_, C_2190_$C_2191_ p_226587_, Consumer<C_183030_> p_226588_)
private static boolean
a(dlb$b arg0, cxk arg1, dbf arg2, Predicate<hc<cht>> arg3)
isValidBiome(Structure$GenerationStub arg0, ChunkGenerator arg1, RandomState arg2, Predicate<Holder<Biome>> arg3)
method_41613(class_3195$class_7150 arg0, class_2794 arg1, class_7138 arg2, Predicate<class_6880<class_1959>> arg3)
isBiomeValid(Structure$StructurePosition result, ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, Predicate<RegistryEntry<Biome>> validBiomes)
m_226589_(C_213164_$C_213166_ p_226590_, C_2118_ p_226591_, C_213138_ p_226592_, Predicate<C_203228_<C_1629_>> p_226593_)
public void
a(chp arg0, cho arg1, cxk arg2, amn arg3, dkt arg4, cge arg5, dlq arg6)
afterPlace(WorldGenLevel arg0, StructureManager arg1, ChunkGenerator arg2, RandomSource arg3, BoundingBox arg4, ChunkPos arg5, PiecesContainer arg6)
method_38694(class_5281 arg0, class_5138 arg1, class_2794 arg2, class_5819 arg3, class_3341 arg4, class_1923 arg5, class_6624 arg6)
postPlace(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos, StructurePiecesList pieces)
m_214110_(C_1625_ p_226561_, C_213086_ p_226562_, C_2118_ p_226563_, C_212974_ p_226564_, C_2478_ p_226565_, C_1560_ p_226566_, C_183028_ arg6)
private static int[]
b(dlb$a arg0, int arg1, int arg2, int arg3, int arg4)
getCornerHeights(Structure$GenerationContext arg0, int arg1, int arg2, int arg3, int arg4)
method_41611(class_3195$class_7149 arg0, int arg1, int arg2, int arg3, int arg4)
getCornerHeights(Structure$Context context, int x, int width, int z, int height)
m_226613_(C_213164_$C_213165_ p_226614_, int p_226615_, int p_226616_, int p_226617_, int p_226618_)
protected static int
a(dlb$a arg0, int arg1, int arg2)
getLowestY(Structure$GenerationContext arg0, int arg1, int arg2)
method_41610(class_3195$class_7149 arg0, int arg1, int arg2)
getMinCornerHeight(Structure$Context context, int width, int height)
m_226572_(C_213164_$C_213165_ p_226573_, int p_226574_, int p_226575_)
protected static int
a(dlb$a arg0, int arg1, int arg2, int arg3, int arg4)
getLowestY(Structure$GenerationContext arg0, int arg1, int arg2, int arg3, int arg4)
method_42381(class_3195$class_7149 arg0, int arg1, int arg2, int arg3, int arg4)
getMinCornerHeight(Structure$Context context, int x, int z, int width, int height)
m_226576_(C_213164_$C_213165_ p_226577_, int p_226578_, int p_226579_, int p_226580_, int p_226581_)
protected BlockPos
a(dlb$a arg0, cpw arg1)
getLowestYIn5by5BoxOffset7Blocks(Structure$GenerationContext arg0, Rotation arg1)
method_42382(class_3195$class_7149 arg0, class_2470 arg1)
getShiftedPos(Structure$Context context, BlockRotation rotation)
m_226582_(C_213164_$C_213165_ p_226584_, C_1886_ arg1)
public abstract Optional<Structure$GenerationStub>
a(dlb$a arg0)
findGenerationPoint(Structure$GenerationContext arg0)
method_38676(class_3195$class_7149 arg0)
getStructurePosition(Structure$Context context)
m_214086_(C_213164_$C_213165_ arg0)
public abstract StructureType<?>
e()
type()
method_41618()
getType()
m_213658_()