CLASS net/minecraft/class_5314 net/minecraft/world/gen/chunk/StructureConfig COMMENT Contains parameters for placement of a single type of {@link net.minecraft.world.gen.feature.StructureFeature} during chunk COMMENT generation. FIELD field_24917 CODEC Lcom/mojang/serialization/Codec; FIELD field_24918 spacing I COMMENT Defines the width and height of a cell in the structure placement grid in chunks. COMMENT
COMMENT For each cell in the grid, the chunk generator will attept to place the start of a structure. COMMENT
COMMENT Minimum is 1, which means the structure will potentially be placed in every chunk. COMMENT 2 leads to one structure per 2x2 chunks, and so on. FIELD field_24919 separation I COMMENT Defines the margin of each cell in the placement grid, which leads to guaranteeing COMMENT a certain minimum distance between each placed structure. COMMENT
COMMENT The margin is effectively subtracted from the width and height of a cell when COMMENT trying to determine the actual starting chunk within the cell. COMMENT
COMMENT A value of 0 means that the structure can be placed in any chunk within a grid cell, COMMENT which also means two structures from adjacent grid cells could be placed directly COMMENT next to each other. COMMENT
COMMENT A value that equals {@link #spacing} - 1 will restrict placement of the structure to the COMMENT chunk at 0,0 of the grid cell. COMMENT
COMMENT This value must be between 0 and {@link #spacing} - 1, and is expressed in chunks.
FIELD field_24920 salt I
COMMENT Used together with the world seed and a grid cell's x,y coordinates to seed the RNG when deciding
COMMENT whether a structure should really be placed in a grid cell or not.
COMMENT This is used to avoid that two types of structures that have the same spacing always occur
COMMENT in the same chunks of their placement grid, and thus in the same world chunk.
METHOD