formatting corrections
Some checks failed
build / build (push) Has been cancelled

This commit is contained in:
Jottyfan
2026-03-07 15:24:36 +01:00
parent 3ece9e8572
commit 9fb94f49ad

View File

@@ -11,11 +11,11 @@ import net.minecraft.world.level.levelgen.feature.ConfiguredFeature;
import net.minecraft.world.level.levelgen.placement.PlacedFeature; import net.minecraft.world.level.levelgen.placement.PlacedFeature;
public class UnoFeatures { public class UnoFeatures {
public static final ResourceKey<ConfiguredFeature<?, ?>> CF_RUBY_ORE = genCf("ruby_ore"); public static final ResourceKey<ConfiguredFeature<?, ?>> CF_RUBY_ORE = genCf("ruby_ore");
public static final ResourceKey<PlacedFeature> PF_RUBY_ORE = genPf("ruby_ore"); public static final ResourceKey<PlacedFeature> PF_RUBY_ORE = genPf("ruby_ore");
private static ResourceKey<ConfiguredFeature<?, ?>> genCf(String name) { private static ResourceKey<ConfiguredFeature<?, ?>> genCf(String name) {
return ResourceKey.create(Registries.CONFIGURED_FEATURE, Identifier.fromNamespaceAndPath(Uno.MOD_ID, name)); return ResourceKey.create(Registries.CONFIGURED_FEATURE, Identifier.fromNamespaceAndPath(Uno.MOD_ID, name));
} }
@@ -23,7 +23,8 @@ public class UnoFeatures {
return ResourceKey.create(Registries.PLACED_FEATURE, Identifier.fromNamespaceAndPath(Uno.MOD_ID, name)); return ResourceKey.create(Registries.PLACED_FEATURE, Identifier.fromNamespaceAndPath(Uno.MOD_ID, name));
} }
public static final void registerFeatures() { public static final void registerFeatures() {
BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Decoration.UNDERGROUND_ORES, PF_RUBY_ORE); BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Decoration.UNDERGROUND_ORES,
} PF_RUBY_ORE);
}
} }