Refactored BCLib Package Structure
This commit is contained in:
parent
81227198fd
commit
bddb5fe0d7
135 changed files with 748 additions and 744 deletions
|
@ -6,11 +6,11 @@ import net.minecraft.resources.ResourceKey;
|
|||
import net.minecraft.world.level.biome.Biome;
|
||||
import net.minecraft.world.level.levelgen.GenerationStep.Decoration;
|
||||
|
||||
import org.betterx.bclib.api.biomes.BiomeAPI;
|
||||
import org.betterx.bclib.api.tag.CommonBlockTags;
|
||||
import org.betterx.bclib.api.tag.TagAPI;
|
||||
import org.betterx.bclib.api.v2.levelgen.features.BCLFeature;
|
||||
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
|
||||
import org.betterx.bclib.api.v2.tag.TagAPI;
|
||||
import org.betterx.bclib.api.v2.levelgen.biomes.BiomeAPI;
|
||||
import org.betterx.bclib.integration.ModIntegration;
|
||||
import org.betterx.bclib.world.features.BCLFeature;
|
||||
|
||||
public class EnderscapeIntegration extends ModIntegration {
|
||||
public EnderscapeIntegration() {
|
||||
|
@ -33,7 +33,7 @@ public class EnderscapeIntegration extends ModIntegration {
|
|||
});
|
||||
|
||||
BCLFeature scatteredShadowQuartzOre = getFeature("scattered_shadow_quartz_ore",
|
||||
Decoration.UNDERGROUND_DECORATION);
|
||||
Decoration.UNDERGROUND_DECORATION);
|
||||
BCLFeature voidNebuliteOre = getFeature("void_nebulite_ore", Decoration.UNDERGROUND_DECORATION);
|
||||
BCLFeature nebuliteOre = getFeature("nebulite_ore", Decoration.UNDERGROUND_DECORATION);
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import net.minecraft.world.item.Items;
|
|||
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
|
||||
import org.betterx.bclib.api.ModIntegrationAPI;
|
||||
import org.betterx.bclib.api.v2.ModIntegrationAPI;
|
||||
import org.betterx.bclib.integration.ModIntegration;
|
||||
import org.betterx.bclib.recipes.GridRecipe;
|
||||
import org.betterx.betterend.BetterEnd;
|
||||
|
|
|
@ -3,7 +3,7 @@ package org.betterx.betterend.integration;
|
|||
import net.minecraft.tags.TagKey;
|
||||
import net.minecraft.world.item.Item;
|
||||
|
||||
import org.betterx.bclib.api.tag.TagAPI;
|
||||
import org.betterx.bclib.api.v2.tag.TagAPI;
|
||||
import org.betterx.bclib.integration.ModIntegration;
|
||||
import org.betterx.betterend.registry.EndItems;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import net.minecraft.world.level.biome.MobSpawnSettings.SpawnerData;
|
|||
import net.minecraft.world.level.levelgen.GenerationStep.Decoration;
|
||||
|
||||
import org.betterx.bclib.BCLib;
|
||||
import org.betterx.bclib.api.biomes.BCLBiomeBuilder;
|
||||
import org.betterx.bclib.api.v2.levelgen.biomes.BCLBiomeBuilder;
|
||||
import org.betterx.betterend.integration.Integrations;
|
||||
import org.betterx.betterend.integration.byg.features.BYGFeatures;
|
||||
import org.betterx.betterend.registry.EndFeatures;
|
||||
|
|
|
@ -15,7 +15,7 @@ import net.minecraft.world.level.levelgen.GenerationStep.Decoration;
|
|||
import net.minecraft.world.level.levelgen.placement.PlacedFeature;
|
||||
|
||||
import org.betterx.bclib.BCLib;
|
||||
import org.betterx.bclib.api.biomes.BCLBiomeBuilder;
|
||||
import org.betterx.bclib.api.v2.levelgen.biomes.BCLBiomeBuilder;
|
||||
import org.betterx.betterend.integration.Integrations;
|
||||
import org.betterx.betterend.integration.byg.features.BYGFeatures;
|
||||
import org.betterx.betterend.registry.EndFeatures;
|
||||
|
|
|
@ -3,8 +3,8 @@ package org.betterx.betterend.integration.byg.features;
|
|||
import net.minecraft.world.level.levelgen.feature.Feature;
|
||||
import net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration;
|
||||
|
||||
import org.betterx.bclib.api.features.BCLCommonFeatures;
|
||||
import org.betterx.bclib.world.features.BCLFeature;
|
||||
import org.betterx.bclib.api.v2.levelgen.features.BCLCommonFeatures;
|
||||
import org.betterx.bclib.api.v2.levelgen.features.BCLFeature;
|
||||
import org.betterx.betterend.BetterEnd;
|
||||
import org.betterx.betterend.integration.Integrations;
|
||||
import org.betterx.betterend.integration.byg.BYGBlocks;
|
||||
|
@ -18,43 +18,43 @@ public class BYGFeatures {
|
|||
"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() {
|
||||
|
|
|
@ -10,11 +10,11 @@ import net.minecraft.world.level.material.Material;
|
|||
|
||||
import com.google.common.base.Function;
|
||||
import com.mojang.math.Vector3f;
|
||||
import org.betterx.bclib.api.tag.CommonBlockTags;
|
||||
import org.betterx.bclib.api.v2.levelgen.features.DefaultFeature;
|
||||
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
|
||||
import org.betterx.bclib.sdf.SDF;
|
||||
import org.betterx.bclib.util.MHelper;
|
||||
import org.betterx.bclib.util.SplineHelper;
|
||||
import org.betterx.bclib.world.features.DefaultFeature;
|
||||
import org.betterx.betterend.integration.Integrations;
|
||||
|
||||
import java.util.List;
|
||||
|
|
|
@ -15,7 +15,8 @@ import net.minecraft.world.level.material.Material;
|
|||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.mojang.math.Vector3f;
|
||||
import org.betterx.bclib.api.tag.CommonBlockTags;
|
||||
import org.betterx.bclib.api.v2.levelgen.features.DefaultFeature;
|
||||
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
|
||||
import org.betterx.bclib.sdf.PosInfo;
|
||||
import org.betterx.bclib.sdf.SDF;
|
||||
import org.betterx.bclib.sdf.operator.SDFDisplacement;
|
||||
|
@ -26,7 +27,6 @@ import org.betterx.bclib.sdf.primitive.SDFSphere;
|
|||
import org.betterx.bclib.util.BlocksHelper;
|
||||
import org.betterx.bclib.util.MHelper;
|
||||
import org.betterx.bclib.util.SplineHelper;
|
||||
import org.betterx.bclib.world.features.DefaultFeature;
|
||||
import org.betterx.betterend.integration.Integrations;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -195,6 +195,6 @@ public class NightshadeRedwoodTreeFeature extends DefaultFeature {
|
|||
new Vector3f(0.40F, 0.2F, 0),
|
||||
new Vector3f(0.50F, 0.4F, 0),
|
||||
new Vector3f(0.55F, 0.6F, 0)
|
||||
);
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,8 @@ import net.minecraft.world.phys.AABB;
|
|||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.mojang.math.Vector3f;
|
||||
import org.betterx.bclib.api.tag.CommonBlockTags;
|
||||
import org.betterx.bclib.api.v2.levelgen.features.DefaultFeature;
|
||||
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
|
||||
import org.betterx.bclib.sdf.SDF;
|
||||
import org.betterx.bclib.sdf.operator.SDFDisplacement;
|
||||
import org.betterx.bclib.sdf.operator.SDFSubtraction;
|
||||
|
@ -22,7 +23,6 @@ import org.betterx.bclib.sdf.operator.SDFUnion;
|
|||
import org.betterx.bclib.sdf.primitive.SDFSphere;
|
||||
import org.betterx.bclib.util.MHelper;
|
||||
import org.betterx.bclib.util.SplineHelper;
|
||||
import org.betterx.bclib.world.features.DefaultFeature;
|
||||
import org.betterx.betterend.integration.Integrations;
|
||||
import org.betterx.betterend.noise.OpenSimplexNoise;
|
||||
|
||||
|
@ -46,8 +46,8 @@ public class OldBulbisTreeFeature extends DefaultFeature {
|
|||
BlockState stem = Integrations.BYG.getDefaultState("bulbis_stem");
|
||||
BlockState wood = Integrations.BYG.getDefaultState("bulbis_wood");
|
||||
BlockState cap = Integrations.BYG.getDefaultState(random.nextBoolean()
|
||||
? "bulbis_shell"
|
||||
: "purple_bulbis_shell");
|
||||
? "bulbis_shell"
|
||||
: "purple_bulbis_shell");
|
||||
BlockState glow = Integrations.BYG.getDefaultState("purple_shroomlight");
|
||||
|
||||
Function<BlockState, Boolean> replacement = (state) -> {
|
||||
|
@ -184,7 +184,7 @@ public class OldBulbisTreeFeature extends DefaultFeature {
|
|||
new Vector3f(0.30F, 0.55F, 0.00F),
|
||||
new Vector3f(0.42F, 0.70F, 0.00F),
|
||||
new Vector3f(0.50F, 1.00F, 0.00F)
|
||||
);
|
||||
);
|
||||
|
||||
ROOT = Lists.newArrayList(
|
||||
new Vector3f(0F, 1F, 0),
|
||||
|
@ -192,7 +192,7 @@ public class OldBulbisTreeFeature extends DefaultFeature {
|
|||
new Vector3f(0.3F, 0.30F, 0),
|
||||
new Vector3f(0.7F, 0.05F, 0),
|
||||
new Vector3f(0.8F, -0.20F, 0)
|
||||
);
|
||||
);
|
||||
SplineHelper.offset(ROOT, new Vector3f(0, -0.45F, 0));
|
||||
|
||||
LEAF = Lists.newArrayList(
|
||||
|
@ -201,7 +201,7 @@ public class OldBulbisTreeFeature extends DefaultFeature {
|
|||
new Vector3f(0.40F, 0.8F, 0),
|
||||
new Vector3f(0.75F, 0.9F, 0),
|
||||
new Vector3f(1.00F, 0.8F, 0)
|
||||
);
|
||||
);
|
||||
|
||||
SIDE = Lists.newArrayList(
|
||||
new Vector3f(0, -0.3F, -0.5F),
|
||||
|
@ -209,6 +209,6 @@ public class OldBulbisTreeFeature extends DefaultFeature {
|
|||
new Vector3f(0, 0.0F, 0.0F),
|
||||
new Vector3f(0, -0.1F, 0.3F),
|
||||
new Vector3f(0, -0.3F, 0.5F)
|
||||
);
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue