mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 14:34:36 +00:00
45 lines
1.2 KiB
Java
45 lines
1.2 KiB
Java
package vazkii.botania.common.world;
|
|
|
|
import com.mojang.datafixers.Dynamic;
|
|
import com.mojang.datafixers.types.DynamicOps;
|
|
import net.minecraft.world.gen.feature.IFeatureConfig;
|
|
import vazkii.botania.common.core.handler.ConfigHandler;
|
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
public class MysticalFlowerConfig implements IFeatureConfig {
|
|
public int getPatchSize() {
|
|
return ConfigHandler.COMMON.flowerPatchSize.get();
|
|
}
|
|
|
|
public int getPatchCount() {
|
|
return ConfigHandler.COMMON.flowerQuantity.get();
|
|
}
|
|
|
|
public int getPatchDensity() {
|
|
return ConfigHandler.COMMON.flowerDensity.get();
|
|
}
|
|
|
|
public int getPatchChance() {
|
|
return ConfigHandler.COMMON.flowerPatchChance.get();
|
|
}
|
|
|
|
public double getTallChance() {
|
|
return ConfigHandler.COMMON.flowerTallChance.get();
|
|
}
|
|
|
|
public int getMushroomPatchSize() {
|
|
return ConfigHandler.COMMON.mushroomQuantity.get();
|
|
}
|
|
|
|
@Nonnull
|
|
@Override
|
|
public <T> Dynamic<T> serialize(@Nonnull DynamicOps<T> ops) {
|
|
return new Dynamic<>(ops);
|
|
}
|
|
|
|
public static MysticalFlowerConfig deserialize(Dynamic<?> dynamic) {
|
|
return new MysticalFlowerConfig();
|
|
}
|
|
}
|