Merge branch 'main' of github.com-quiqueck:paulevsGitch/BCLib

This commit is contained in:
Frank 2021-08-20 14:15:33 +02:00
commit 601b984430
2 changed files with 9 additions and 1 deletions

View file

@ -308,4 +308,12 @@ public class BiomeAPI {
public static boolean isDatapackBiome(ResourceLocation biomeID) { public static boolean isDatapackBiome(ResourceLocation biomeID) {
return getFromRegistry(biomeID) == null; return getFromRegistry(biomeID) == null;
} }
public static boolean isNetherBiome(ResourceLocation biomeID) {
return NETHER_BIOME_PICKER.getBiomes().contains(biomeID);
}
public static boolean isEndBiome(ResourceLocation biomeID) {
return END_LAND_BIOME_PICKER.getBiomes().contains(biomeID) || END_VOID_BIOME_PICKER.getBiomes().contains(biomeID);
}
} }

View file

@ -53,7 +53,7 @@ class ModMenuScreenFactoryImpl {
* the {@link #createEntrypoint(ModMenuIntegration)}-Method. * the {@link #createEntrypoint(ModMenuIntegration)}-Method.
* <p> * <p>
* Example: * Example:
* <pre>{@code public class ModMenu extends ModMenuIntegration { * <pre>{@code public class} ModMenu extends ModMenuIntegration {
* public static final ModMenuApiMarker entrypointObject = createEntrypoint(new EntryPoint()); * public static final ModMenuApiMarker entrypointObject = createEntrypoint(new EntryPoint());
* *
* public EntryPoint() { * public EntryPoint() {