StructurePool.REGISTRY_CODEC.fieldOf("start_pool").forGetter(structure -> structure.startPool),
Identifier.CODEC.optionalFieldOf("start_jigsaw_name").forGetter(structure -> structure.startJigsawName),
Codec.intRange(0, 30).fieldOf("size").forGetter(structure -> structure.size),
HeightProvider.CODEC.fieldOf("start_height").forGetter(structure -> structure.startHeight),
Heightmap.Type.CODEC.optionalFieldOf("project_start_to_heightmap").forGetter(structure -> structure.projectStartToHeightmap),
Codec.intRange(1, 128).fieldOf("max_distance_from_center").forGetter(structure -> structure.maxDistanceFromCenter)
).apply(instance, ModStructure::new)).codec()
ModStructure(Structure.Config config, RegistryEntry< StructurePool > startPool, Optional< Identifier > startJigsawName, int size, HeightProvider startHeight, Optional< Heightmap.Type > projectStartToHeightmap, int maxDistanceFromCenter)
Definition: ModStructure.java:41