mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-17 09:55:02 +00:00
code cleanup
This commit is contained in:
22 files changed
+86
-108
No files matched your search
@@ -71,7 +71,8 @@ public class MappingManager {
|
||||
.patchVersion(-1)
|
||||
.build())
|
||||
.build());
|
||||
val input = new DataInputStream(new LZMA2Options(6).getInputStream(ResourceUtil.getResourceFromJar("/mappings.lzma2", CoreLoadingPlugin.class)));
|
||||
val input = new DataInputStream(new LZMA2Options(6).getInputStream(
|
||||
ResourceUtil.getResourceFromJar("/mappings.lzma2", CoreLoadingPlugin.class)));
|
||||
{
|
||||
var classBytes = new byte[input.readInt()];
|
||||
input.readFully(classBytes);
|
||||
@@ -86,7 +87,7 @@ public class MappingManager {
|
||||
{
|
||||
var fieldBytes = new byte[input.readInt()];
|
||||
input.readFully(fieldBytes);
|
||||
var fieldMappings = new String(fieldBytes).split( "\n");
|
||||
var fieldMappings = new String(fieldBytes).split("\n");
|
||||
for (int i = 1; i < fieldMappings.length; i++) {
|
||||
val line = fieldMappings[i].split(",");
|
||||
val clazz = internalLookup.get(MappingType.Notch, line[0].substring(0, line[0].lastIndexOf('/')));
|
||||
|
||||
@@ -24,10 +24,7 @@ import com.falsepattern.lib.StableAPI;
|
||||
|
||||
@StableAPI(since = "0.10.0")
|
||||
public enum MappingType {
|
||||
@StableAPI.Expose
|
||||
Notch,
|
||||
@StableAPI.Expose
|
||||
SRG,
|
||||
@StableAPI.Expose
|
||||
MCP
|
||||
@StableAPI.Expose Notch,
|
||||
@StableAPI.Expose SRG,
|
||||
@StableAPI.Expose MCP
|
||||
}
|
||||
@@ -24,8 +24,6 @@ import com.falsepattern.lib.StableAPI;
|
||||
|
||||
@StableAPI(since = "0.10.0")
|
||||
public enum NameType {
|
||||
@StableAPI.Expose
|
||||
Internal,
|
||||
@StableAPI.Expose
|
||||
Regular
|
||||
@StableAPI.Expose Internal,
|
||||
@StableAPI.Expose Regular
|
||||
}
|
||||
@@ -21,8 +21,8 @@
|
||||
package com.falsepattern.lib.mapping.types;
|
||||
|
||||
import com.falsepattern.lib.StableAPI;
|
||||
import com.falsepattern.lib.mapping.storage.MappedString;
|
||||
import com.falsepattern.lib.internal.ReflectionUtil;
|
||||
import com.falsepattern.lib.mapping.storage.MappedString;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
package com.falsepattern.lib.mapping.types;
|
||||
|
||||
import com.falsepattern.lib.StableAPI;
|
||||
import com.falsepattern.lib.mapping.storage.MappedString;
|
||||
import com.falsepattern.lib.internal.ReflectionUtil;
|
||||
import com.falsepattern.lib.mapping.storage.MappedString;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
|
||||
Reference in new issue
Block a user