65 lines
2.2 KiB
Java
65 lines
2.2 KiB
Java
package ru.betterend.integration.byg.features;
|
|
|
|
import net.minecraft.world.level.levelgen.feature.Feature;
|
|
import net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration;
|
|
import ru.bclib.api.features.BCLCommonFeatures;
|
|
import ru.bclib.world.features.BCLFeature;
|
|
import ru.betterend.BetterEnd;
|
|
import ru.betterend.integration.Integrations;
|
|
import ru.betterend.integration.byg.BYGBlocks;
|
|
import ru.betterend.world.features.SinglePlantFeature;
|
|
import ru.betterend.world.features.VineFeature;
|
|
import ru.betterend.world.features.WallPlantFeature;
|
|
import ru.betterend.world.features.WallPlantOnLogFeature;
|
|
|
|
public class BYGFeatures {
|
|
public static final BCLFeature OLD_BULBIS_TREE = redisterVegetation(
|
|
"old_bulbis_tree",
|
|
new OldBulbisTreeFeature(),
|
|
1
|
|
);
|
|
public static final BCLFeature IVIS_SPROUT = redisterVegetation(
|
|
"ivis_sprout",
|
|
new SinglePlantFeature(Integrations.BYG.getBlock("ivis_sprout"), 6, 2),
|
|
6
|
|
);
|
|
public static final BCLFeature IVIS_VINE = redisterVegetation(
|
|
"ivis_vine",
|
|
new VineFeature(BYGBlocks.IVIS_VINE, 24),
|
|
5
|
|
);
|
|
public static final BCLFeature IVIS_MOSS = redisterVegetation(
|
|
"ivis_moss",
|
|
new WallPlantFeature(BYGBlocks.IVIS_MOSS, 6),
|
|
1
|
|
);
|
|
public static final BCLFeature IVIS_MOSS_WOOD = redisterVegetation(
|
|
"ivis_moss_wood",
|
|
new WallPlantOnLogFeature(BYGBlocks.IVIS_MOSS, 6),
|
|
15
|
|
);
|
|
public static final BCLFeature NIGHTSHADE_MOSS = redisterVegetation(
|
|
"nightshade_moss",
|
|
new WallPlantFeature(BYGBlocks.NIGHTSHADE_MOSS, 5),
|
|
2
|
|
);
|
|
public static final BCLFeature NIGHTSHADE_MOSS_WOOD = redisterVegetation(
|
|
"nightshade_moss_wood",
|
|
new WallPlantOnLogFeature(BYGBlocks.NIGHTSHADE_MOSS, 5),
|
|
8
|
|
);
|
|
|
|
public static final BCLFeature NIGHTSHADE_REDWOOD_TREE = redisterVegetation(
|
|
"nightshade_redwood_tree",
|
|
new NightshadeRedwoodTreeFeature(),
|
|
1
|
|
);
|
|
public static final BCLFeature BIG_ETHER_TREE = redisterVegetation("big_ether_tree", new BigEtherTreeFeature(), 1);
|
|
|
|
public static void register() {
|
|
}
|
|
|
|
private static BCLFeature redisterVegetation(String name, Feature<NoneFeatureConfiguration> feature, int density) {
|
|
return BCLCommonFeatures.makeVegetationFeature(BetterEnd.makeID(name), feature, density);
|
|
}
|
|
}
|