mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 22:31:52 +00:00
document ImageProviderTemplate
This commit is contained in:
+4
@@ -8,6 +8,7 @@
|
|||||||
package com.dfsek.terra.addons.biome.image;
|
package com.dfsek.terra.addons.biome.image;
|
||||||
|
|
||||||
import com.dfsek.tectonic.api.config.template.annotations.Default;
|
import com.dfsek.tectonic.api.config.template.annotations.Default;
|
||||||
|
import com.dfsek.tectonic.api.config.template.annotations.Description;
|
||||||
import com.dfsek.tectonic.api.config.template.annotations.Value;
|
import com.dfsek.tectonic.api.config.template.annotations.Value;
|
||||||
import com.dfsek.tectonic.api.config.template.object.ObjectTemplate;
|
import com.dfsek.tectonic.api.config.template.object.ObjectTemplate;
|
||||||
|
|
||||||
@@ -24,10 +25,13 @@ public class ImageProviderTemplate implements ObjectTemplate<BiomeProvider> {
|
|||||||
private final Registry<Biome> biomes;
|
private final Registry<Biome> biomes;
|
||||||
@Value("resolution")
|
@Value("resolution")
|
||||||
@Default
|
@Default
|
||||||
|
@Description("Sets the resolution at which to sample the image.")
|
||||||
private int resolution = 1;
|
private int resolution = 1;
|
||||||
@Value("image.name")
|
@Value("image.name")
|
||||||
|
@Description("Sets the location of the image on the filesystem, relative to the pack root.")
|
||||||
private BufferedImage image;
|
private BufferedImage image;
|
||||||
@Value("image.align")
|
@Value("image.align")
|
||||||
|
@Description("Sets the alignment style to use for the image.")
|
||||||
private ImageBiomeProvider.Align align;
|
private ImageBiomeProvider.Align align;
|
||||||
|
|
||||||
public ImageProviderTemplate(Registry<Biome> set) {
|
public ImageProviderTemplate(Registry<Biome> set) {
|
||||||
|
|||||||
Reference in New Issue
Block a user