Rename
This commit is contained in:
parent
72403f47ba
commit
ad2215514f
1 changed files with 4 additions and 5 deletions
|
@ -19,8 +19,7 @@ import ru.betterend.world.features.UnderwaterPlantFeature;
|
||||||
import ru.betterend.world.features.VineFeature;
|
import ru.betterend.world.features.VineFeature;
|
||||||
|
|
||||||
public class FeatureRegistry {
|
public class FeatureRegistry {
|
||||||
|
private final static List<EndFeature> GLOBAL_FEATURES = Lists.newArrayList();
|
||||||
private final static List<EndFeature> globalFeatures = Lists.newArrayList();
|
|
||||||
|
|
||||||
// Trees //
|
// Trees //
|
||||||
public static final EndFeature MOSSY_GLOWSHROOM = new EndFeature("mossy_glowshroom", new MossyGlowshroomFeature(), 3);
|
public static final EndFeature MOSSY_GLOWSHROOM = new EndFeature("mossy_glowshroom", new MossyGlowshroomFeature(), 3);
|
||||||
|
@ -50,7 +49,7 @@ public class FeatureRegistry {
|
||||||
public static final EndFeature FLAVOLITE_LAYER = EndFeature.makeLayerFeature("flavolite_layer", BlockRegistry.FLAVOLITE, 12, 4, 96, 6);
|
public static final EndFeature FLAVOLITE_LAYER = EndFeature.makeLayerFeature("flavolite_layer", BlockRegistry.FLAVOLITE, 12, 4, 96, 6);
|
||||||
|
|
||||||
public static void registerGlobals(List<List<Supplier<ConfiguredFeature<?, ?>>>> features) {
|
public static void registerGlobals(List<List<Supplier<ConfiguredFeature<?, ?>>>> features) {
|
||||||
globalFeatures.forEach(feature -> {
|
GLOBAL_FEATURES.forEach(feature -> {
|
||||||
int index = feature.getFeatureStep().ordinal();
|
int index = feature.getFeatureStep().ordinal();
|
||||||
if (features.size() > index) {
|
if (features.size() > index) {
|
||||||
features.get(index).add(() -> {
|
features.get(index).add(() -> {
|
||||||
|
@ -69,7 +68,7 @@ public class FeatureRegistry {
|
||||||
public static void register() {}
|
public static void register() {}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
globalFeatures.add(FLAVOLITE_LAYER);
|
GLOBAL_FEATURES.add(FLAVOLITE_LAYER);
|
||||||
globalFeatures.add(ENDER_ORE);
|
GLOBAL_FEATURES.add(ENDER_ORE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue