Merge branch 'main' of github.com-quiqueck:paulevsGitch/BCLib
This commit is contained in:
commit
601b984430
2 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue