More annotation fixes

This commit is contained in:
paulevsGitch 2021-06-06 12:35:34 +03:00
parent c6bb88fdc8
commit 0d63530136
4 changed files with 7 additions and 6 deletions

View file

@ -143,7 +143,7 @@ public class BiomeAPI {
/**
* Check if biome with {@link ResourceLocation} exists in API registry.
* @param biomeID - biome {@link ResourceLocation}.
* @return
* @return {@code true} if biome exists in API registry and {@code false} if not.
*/
public static boolean hasBiome(ResourceLocation biomeID) {
return ID_MAP.containsKey(biomeID);

View file

@ -24,6 +24,7 @@ public class DataFixerAPI {
private static final Map<String, Integer> FIX_VERSIONS = Maps.newHashMap();
public static void fixData(File dir) {
REPLACEMENT.clear(); // API is not finished yet!
if (REPLACEMENT.isEmpty()) {
return;
}
@ -117,7 +118,7 @@ public class DataFixerAPI {
/**
* Get mod version from string. String should be in format: %d.%d.%d
* @param version - {@link String} mod version.
* @return
* @return int mod version.
*/
public static int getModVersion(String version) {
if (version.isEmpty()) {
@ -134,8 +135,8 @@ public class DataFixerAPI {
/**
* Get mod version from integer. String will be in format %d.%d.%d
* @param version
* @return
* @param version - mod version in integer form.
* @return {@link String} mod version.
*/
public static String getModVersion(int version) {
int a = (version >> 12) & 63;