More annotation fixes
This commit is contained in:
parent
c6bb88fdc8
commit
0d63530136
4 changed files with 7 additions and 6 deletions
|
@ -143,7 +143,7 @@ public class BiomeAPI {
|
||||||
/**
|
/**
|
||||||
* Check if biome with {@link ResourceLocation} exists in API registry.
|
* Check if biome with {@link ResourceLocation} exists in API registry.
|
||||||
* @param biomeID - biome {@link ResourceLocation}.
|
* @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) {
|
public static boolean hasBiome(ResourceLocation biomeID) {
|
||||||
return ID_MAP.containsKey(biomeID);
|
return ID_MAP.containsKey(biomeID);
|
||||||
|
|
|
@ -24,6 +24,7 @@ public class DataFixerAPI {
|
||||||
private static final Map<String, Integer> FIX_VERSIONS = Maps.newHashMap();
|
private static final Map<String, Integer> FIX_VERSIONS = Maps.newHashMap();
|
||||||
|
|
||||||
public static void fixData(File dir) {
|
public static void fixData(File dir) {
|
||||||
|
REPLACEMENT.clear(); // API is not finished yet!
|
||||||
if (REPLACEMENT.isEmpty()) {
|
if (REPLACEMENT.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -117,7 +118,7 @@ public class DataFixerAPI {
|
||||||
/**
|
/**
|
||||||
* Get mod version from string. String should be in format: %d.%d.%d
|
* Get mod version from string. String should be in format: %d.%d.%d
|
||||||
* @param version - {@link String} mod version.
|
* @param version - {@link String} mod version.
|
||||||
* @return
|
* @return int mod version.
|
||||||
*/
|
*/
|
||||||
public static int getModVersion(String version) {
|
public static int getModVersion(String version) {
|
||||||
if (version.isEmpty()) {
|
if (version.isEmpty()) {
|
||||||
|
@ -134,8 +135,8 @@ public class DataFixerAPI {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mod version from integer. String will be in format %d.%d.%d
|
* Get mod version from integer. String will be in format %d.%d.%d
|
||||||
* @param version
|
* @param version - mod version in integer form.
|
||||||
* @return
|
* @return {@link String} mod version.
|
||||||
*/
|
*/
|
||||||
public static String getModVersion(int version) {
|
public static String getModVersion(int version) {
|
||||||
int a = (version >> 12) & 63;
|
int a = (version >> 12) & 63;
|
||||||
|
|
|
@ -131,7 +131,7 @@ public class BlocksHelper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new {@link Direction} array with clockwise order:
|
* Creates a new {@link Direction} array with clockwise order:
|
||||||
* NORTH -> EAST -> SOUTH -> WEST
|
* NORTH, EAST, SOUTH, WEST
|
||||||
* @return Array of {@link Direction}.
|
* @return Array of {@link Direction}.
|
||||||
*/
|
*/
|
||||||
public static Direction[] makeHorizontal() {
|
public static Direction[] makeHorizontal() {
|
||||||
|
|
|
@ -77,7 +77,7 @@ public class WeightedList<T> {
|
||||||
* Makes a sublist of this list with same weights. Used only in {@link WeighTree}
|
* Makes a sublist of this list with same weights. Used only in {@link WeighTree}
|
||||||
* @param start - {@code int} start index (inclusive).
|
* @param start - {@code int} start index (inclusive).
|
||||||
* @param end - {@code int} end index (exclusive).
|
* @param end - {@code int} end index (exclusive).
|
||||||
* @return {@link WeightedList<T>}.
|
* @return {@link WeightedList}.
|
||||||
*/
|
*/
|
||||||
protected WeightedList<T> subList(int start, int end) {
|
protected WeightedList<T> subList(int start, int end) {
|
||||||
WeightedList<T> list = new WeightedList<T>();
|
WeightedList<T> list = new WeightedList<T>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue