2015-08-29 14:33:25 +02:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("Util.java") is part of the Actually Additions mod for Minecraft.
|
2015-08-29 14:33:25 +02:00
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
2016-05-16 22:52:27 +02:00
|
|
|
* http://ellpeck.de/actaddlicense
|
2015-08-29 14:33:25 +02:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.util;
|
2014-11-10 16:47:04 +01:00
|
|
|
|
2018-05-10 11:40:16 +02:00
|
|
|
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
2024-03-04 20:21:48 +01:00
|
|
|
import net.neoforged.fml.loading.FMLLoader;
|
2014-11-10 16:47:04 +01:00
|
|
|
|
2019-05-02 09:08:15 +02:00
|
|
|
public final class Util {
|
2014-11-10 16:47:04 +01:00
|
|
|
|
2021-03-01 17:25:30 +01:00
|
|
|
@Deprecated
|
|
|
|
public static final int WILDCARD = Short.MAX_VALUE;//OreDictionary.WILDCARD_VALUE;
|
2016-01-01 23:54:36 +01:00
|
|
|
|
2021-03-01 17:25:30 +01:00
|
|
|
@Deprecated
|
|
|
|
public static final int BUCKET = 1000;
|
2015-12-13 23:01:56 +01:00
|
|
|
|
2019-05-02 09:08:15 +02:00
|
|
|
public static boolean isDevVersion() {
|
2018-05-10 11:40:16 +02:00
|
|
|
return ActuallyAdditions.VERSION.equals("@VERSION@");
|
2015-07-01 21:32:48 +02:00
|
|
|
}
|
2019-02-27 19:53:05 +01:00
|
|
|
|
2019-05-02 09:08:15 +02:00
|
|
|
public static boolean isClient() {
|
2021-03-01 17:25:30 +01:00
|
|
|
return FMLLoader.getDist().isClient();
|
2017-07-28 03:17:50 +02:00
|
|
|
}
|
2016-08-01 16:29:35 +02:00
|
|
|
|
2019-05-02 09:08:15 +02:00
|
|
|
private static String[] splitVersion() {
|
2018-05-10 11:40:16 +02:00
|
|
|
return ActuallyAdditions.VERSION.split("-");
|
2016-08-01 16:29:35 +02:00
|
|
|
}
|
|
|
|
|
2019-05-02 09:08:15 +02:00
|
|
|
public static String getMcVersion() {
|
2016-08-01 16:29:35 +02:00
|
|
|
return splitVersion()[0];
|
|
|
|
}
|
|
|
|
|
2019-05-02 09:08:15 +02:00
|
|
|
public static String getMajorModVersion() {
|
2016-08-01 16:29:35 +02:00
|
|
|
return splitVersion()[1].substring(1);
|
|
|
|
}
|
2021-03-01 17:25:30 +01:00
|
|
|
}
|