This repository was archived by the owner on Jun 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
patchwork-fml/src/main/java
net/minecraftforge/fml/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020package com .patchworkmc .impl .fml ;
2121
22- import static net .minecraftforge .fml .common .ObfuscationReflectionHelper .INTERMEDIARY ;
23- import static net .minecraftforge .fml .common .ObfuscationReflectionHelper .MAPPINGS ;
24- import static net .minecraftforge .fml .common .ObfuscationReflectionHelper .NAMED ;
25-
2622import javax .annotation .Nonnull ;
2723import javax .annotation .Nullable ;
2824
2925import cpw .mods .modlauncher .api .INameMappingService ;
3026
3127import net .fabricmc .loader .api .FabricLoader ;
28+ import net .fabricmc .loader .launch .common .FabricLauncherBase ;
3229import net .fabricmc .mapping .tree .ClassDef ;
3330import net .fabricmc .mapping .tree .Mapped ;
31+ import net .fabricmc .mapping .tree .TinyTree ;
3432
3533public class PatchworkMappingService {
34+ public static final TinyTree MAPPINGS = FabricLauncherBase .getLauncher ().getMappingConfiguration ().getMappings ();
35+ public static final String INTERMEDIARY = "intermediary" ;
36+ public static final String NAMED = "named" ;
37+
3638 private PatchworkMappingService () {
3739 // NO-OP
3840 }
Original file line number Diff line number Diff line change 3434import org .apache .logging .log4j .Marker ;
3535import org .apache .logging .log4j .MarkerManager ;
3636
37- import net .fabricmc .loader .launch .common .FabricLauncherBase ;
38- import net .fabricmc .mapping .tree .TinyTree ;
39-
4037import com .patchworkmc .impl .fml .PatchworkMappingService ;
4138
4239/**
@@ -53,9 +50,6 @@ public class ObfuscationReflectionHelper {
5350 private static final Logger LOGGER = LogManager .getLogger ();
5451 private static final Marker REFLECTION = MarkerManager .getMarker ("REFLECTION" );
5552 // We're technically messing with Loader's internal APIs here, if Loader ever gets a better mapping resolution system this class should be refactored.
56- public static final TinyTree MAPPINGS = FabricLauncherBase .getLauncher ().getMappingConfiguration ().getMappings ();
57- public static final String INTERMEDIARY = "intermediary" ;
58- public static final String NAMED = "named" ;
5953
6054 /**
6155 * Remaps a name from intermediary to whatever is currently being used at runtime.
You can’t perform that action at this time.
0 commit comments