mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 09:07:29 +00:00
Utility classes have been marked as such
This commit is contained in:
1 parent
31826c9415
commit
294a4c7504
5 files changed
+14
-6
No files matched your search
@@ -22,12 +22,14 @@ package com.falsepattern.lib.util;
|
||||
|
||||
import com.falsepattern.lib.StableAPI;
|
||||
|
||||
import lombok.experimental.UtilityClass;
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@UtilityClass
|
||||
@StableAPI(since = "0.8.2")
|
||||
public class FileUtil {
|
||||
public final class FileUtil {
|
||||
@StableAPI.Expose
|
||||
public static File getMinecraftHome() {
|
||||
return Launch.minecraftHome == null ? new File(".") : Launch.minecraftHome;
|
||||
|
||||
@@ -23,6 +23,7 @@ package com.falsepattern.lib.util;
|
||||
import com.falsepattern.lib.StableAPI;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.NonNull;
|
||||
import lombok.experimental.UtilityClass;
|
||||
import lombok.val;
|
||||
|
||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||
@@ -32,7 +33,7 @@ import java.util.Map;
|
||||
|
||||
import static lombok.AccessLevel.PRIVATE;
|
||||
|
||||
@NoArgsConstructor(access = PRIVATE)
|
||||
@UtilityClass
|
||||
@StableAPI(since = "0.8.0")
|
||||
public final class LangUtil {
|
||||
@StableAPI.Expose
|
||||
|
||||
@@ -22,12 +22,14 @@ package com.falsepattern.lib.util;
|
||||
|
||||
import com.falsepattern.lib.StableAPI;
|
||||
import com.falsepattern.lib.compat.Vec3i;
|
||||
import lombok.experimental.UtilityClass;
|
||||
|
||||
import java.util.Random;
|
||||
import java.util.UUID;
|
||||
|
||||
@UtilityClass
|
||||
@StableAPI(since = "0.10.0")
|
||||
public class MathUtil {
|
||||
public final class MathUtil {
|
||||
@StableAPI.Expose
|
||||
public static final float SQRT_2 = sqrt(2.0F);
|
||||
/**
|
||||
@@ -621,4 +623,4 @@ public class MathUtil {
|
||||
x = x ^ x >>> 16;
|
||||
return x;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,6 +23,7 @@ package com.falsepattern.lib.util;
|
||||
import com.falsepattern.lib.StableAPI;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.experimental.UtilityClass;
|
||||
import lombok.val;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
@@ -36,7 +37,7 @@ import static lombok.AccessLevel.PRIVATE;
|
||||
import static net.minecraft.client.Minecraft.getMinecraft;
|
||||
|
||||
@SideOnly(CLIENT)
|
||||
@NoArgsConstructor(access = PRIVATE)
|
||||
@UtilityClass
|
||||
@StableAPI(since = "0.8.0")
|
||||
public final class RenderUtil {
|
||||
private static final Timer MINECRAFT_TIMER = getMinecraftTimer();
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
package com.falsepattern.lib.util;
|
||||
|
||||
import com.falsepattern.lib.StableAPI;
|
||||
import lombok.experimental.UtilityClass;
|
||||
import lombok.val;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
@@ -34,8 +35,9 @@ import java.nio.charset.StandardCharsets;
|
||||
/**
|
||||
* A utility class for reading resources in many ways.
|
||||
*/
|
||||
@UtilityClass
|
||||
@StableAPI(since = "0.6.0")
|
||||
public class ResourceUtil {
|
||||
public final class ResourceUtil {
|
||||
|
||||
/**
|
||||
* Reads a resource as a string, using the {@link StandardCharsets#UTF_8} charset, from a specific jar file. See
|
||||
|
||||
Reference in new issue
Block a user