net.minecraft.world.level.levelgen.structure

public abstract class Structure

enn
net.minecraft.world.level.levelgen.structure.Structure
net.minecraft.class_3195
net.minecraft.world.gen.structure.Structure
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
public static final com.mojang.serialization.Codec<Holder<Structure>>
b
CODEC
field_37745
ENTRY_CODEC
protected final Structure$StructureSettings
c
settings
field_38429
config

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)
public static <S extends Structure> com.mojang.serialization.MapCodec<S>
a(Function<enn$c, S> arg0)
simpleCodec(Function<Structure$StructureSettings, S> arg0)
method_42699(Function<class_3195$class_7302, S> arg0)
createCodec(Function<Structure$Config, S> featureCreator)
public HolderSet<Biome>
a()
biomes()
method_41607()
getValidBiomes()
public Map<MobCategory, StructureSpawnOverride>
b()
spawnOverrides()
method_41615()
getStructureSpawns()
public GenerationStep$Decoration
c()
step()
method_41616()
getFeatureGenerationStep()
public TerrainAdjustment
d()
terrainAdaptation()
method_42701()
getTerrainAdaptation()
public BoundingBox
a(enf arg0)
adjustBoundingBox(BoundingBox arg0)
method_41609(class_3341 arg0)
expandBoxIfShouldAdaptNoise(BlockBox box)
public StructureStart
a(jr<enn> arg0, aku<dgj> arg1, kf arg2, dyu arg3, dhp arg4, edh arg5, erq arg6, long arg7, dfp arg8, int arg9, dgl arg10, Predicate<jr<dhl>> arg11)
generate(Holder<Structure> arg0, ResourceKey<Level> arg1, RegistryAccess arg2, ChunkGenerator arg3, BiomeSource arg4, RandomState arg5, StructureTemplateManager arg6, long arg7, ChunkPos arg8, int arg9, LevelHeightAccessor arg10, Predicate<Holder<Biome>> arg11)
method_41614(class_6880<class_3195> arg0, class_5321<class_1937> arg1, class_5455 arg2, class_2794 arg3, class_1966 arg4, class_7138 arg5, class_3485 arg6, long arg7, class_1923 arg8, int arg9, class_5539 arg10, Predicate<class_6880<class_1959>> arg11)
createStructureStart(RegistryEntry<Structure> structure, RegistryKey<World> dimension, DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, StructureTemplateManager structureTemplateManager, long seed, ChunkPos chunkPos, int references, HeightLimitView world, Predicate<RegistryEntry<Biome>> validBiomes)
protected static Optional<Structure$GenerationStub>
a(enn$a arg0, ect$a arg1, Consumer<eof> 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)
private static boolean
a(enn$b arg0, enn$a arg1)
isValidBiome(Structure$GenerationStub arg0, Structure$GenerationContext arg1)
method_41613(class_3195$class_7150 arg0, class_3195$class_7149 arg1)
isBiomeValid(Structure$StructurePosition result, Structure$Context context)
public void
a(dhh arg0, dhf arg1, dyu arg2, azh arg3, enf arg4, dfp arg5, eoc 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)
private static int[]
c(enn$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)
public static int
a(enn$a arg0, int arg1, int arg2, int arg3, int arg4)
getMeanFirstOccupiedHeight(Structure$GenerationContext arg0, int arg1, int arg2, int arg3, int arg4)
method_59863(class_3195$class_7149 arg0, int arg1, int arg2, int arg3, int arg4)
getAverageCornerHeights(Structure$Context context, int x, int width, int z, int height)
protected static int
a(enn$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)
protected static int
b(enn$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)
protected BlockPos
a(enn$a arg0, dqf arg1)
getLowestYIn5by5BoxOffset7Blocks(Structure$GenerationContext arg0, Rotation arg1)
method_42382(class_3195$class_7149 arg0, class_2470 arg1)
getShiftedPos(Structure$Context context, BlockRotation rotation)
protected abstract Optional<Structure$GenerationStub>
a(enn$a arg0)
findGenerationPoint(Structure$GenerationContext arg0)
method_38676(class_3195$class_7149 arg0)
getStructurePosition(Structure$Context context)
public Optional<Structure$GenerationStub>
b(enn$a arg0)
findValidGenerationPoint(Structure$GenerationContext arg0)
method_47932(class_3195$class_7149 arg0)
getValidStructurePosition(Structure$Context context)
public abstract StructureType<?>
e()
type()
method_41618()
getType()