Compare commits

...
35 Commits
Author SHA1 Message Date
xfl03 88763d64ef Bump 14.10 2019-03-03 12:20:28 +08:00
xfl03 4f2b5edf84 Fix incorrect response code judgement 2019-03-03 11:53:48 +08:00
xfl03 cbe07b9003 Fix http redirect to https 2019-03-03 11:34:54 +08:00
xfl03 b2867a0dbf Add support for 1.13.2 forge 2019-03-02 12:26:53 +08:00
xfl03 65dacd8527 Fix javascript cannot expand 2019-03-01 20:31:23 +08:00
xfl03 d2d425e96e Remove 1.13 & 1.13.1 in settings.gradle 2019-03-01 20:10:50 +08:00
xfl03 0762e3e339 Remove support for vanilla 1.13 & 1.13.1 2019-03-01 20:08:22 +08:00
xfl03 4cb1e348bb Try to support 1.13 forge 2019-03-01 14:59:02 +08:00
Alexander Xia 7bbfd19bfd Fix no content cache 2019-02-06 00:39:17 +08:00
Alexander Xia be8b80bd55 Tweak CircleCI Docker Image 2019-01-05 00:20:22 +08:00
Alexander Xia 47de6d3a89 Add workaround for #42 2019-01-05 00:12:42 +08:00
Alexander Xia f78a3b2565 Add disable cape feature 2018-11-26 15:16:07 +08:00
Alexander Xia 016249c6ca Fix version display again 2018-11-25 02:33:12 +08:00
Alexander Xia 860edd2e1a Fix version display 2018-11-25 02:13:55 +08:00
Alexander Xia 3e6e444857 Fix gradle script buid again 2018-11-25 02:08:54 +08:00
Alexander Xia d67b7c6296 Fix gradle script buid again 2018-11-25 02:04:36 +08:00
Alexander Xia 94f6044c9a Fix gradle script build error 2018-11-25 01:53:28 +08:00
Alexander Xia 6b3531964e Tweak version json name 2018-11-25 01:44:06 +08:00
Alexander Xia fbd06f147a Modify gradle script 2018-11-24 01:38:49 +08:00
Alexander Xia e3020dad00 Add Upload Version json to COS 2018-11-23 03:23:17 +08:00
Alexander Xia 49fb976a2c Fix COS upload path 2018-11-23 02:48:19 +08:00
Alexander Xia 78bc4b5f7e Try to upload file to COS 2018-11-23 02:43:30 +08:00
Alexander Xia 7a3dc4f9c2 Support for 1.13.2 2018-11-02 14:48:07 +08:00
Alexander Xia 2087f7bb94 Tweak: Change Profile.json mirror 2018-09-23 23:44:25 +08:00
Alexander Xia e95edb16ac Add: Vanilla Support for 1.13.1 2018-09-23 23:00:34 +08:00
Alexander Xia 3b07b5ccca Update config version checker
Update config output
Add enableCape in config
2018-09-02 15:57:08 +08:00
xfl03 a3fb3cd770 Fix Build 2018-08-26 07:16:37 +08:00
xfl03 b7b59c0b85 Support ModLauncher 2018-08-26 07:04:25 +08:00
Alexander Xia db6b54732e Update MCP map to stable 2018-08-22 03:42:50 +08:00
Alexander Xia 09e3b81552 Fix path for ForgePlugin.log 2018-08-20 19:23:47 +08:00
Alexander Xia 2f494d295e Update Forge Version 2018-08-13 05:15:32 +08:00
Alexander Xia e8e3a72ae7 Add Fingerprint Violation 2018-08-13 05:11:47 +08:00
Alexander Xia ca8bd4e83d Add Profile.json for vanilla edition
Remove CustomSkinAPIPlusPrivacy
Fix typo in ReadMe
Update mcp map
2018-08-11 07:34:13 +08:00
Alexander Xia d789119c8f Get Ready for Forge 1.13 2018-07-26 20:50:41 +08:00
Alexander Xia bfd1b41ecc Update ReadMe
Thanks for @HeartyYF
2018-07-26 13:19:33 +08:00
46 changed files with 1492 additions and 44723 deletions

No files matched your search

+2 -1
View File
@@ -3,7 +3,7 @@ version: 2
jobs: jobs:
build: build:
docker: docker:
- image: circleci/openjdk:8-jdk - image: circleci/openjdk@sha256:7be33522f6f0ca65c2e78b22b1ef3e6739038494c1de1b8fb6d96da400dccf53
working_directory: ~/repo working_directory: ~/repo
@@ -26,6 +26,7 @@ jobs:
# Gradle # Gradle
- run: gradle --version - run: gradle --version
- run: gradle clean build - run: gradle clean build
- run: gradle upload
- store_artifacts: - store_artifacts:
path: ./build/libs path: ./build/libs
File renamed without changes.
+458
View File
@@ -0,0 +1,458 @@
CL: net/minecraft/util/ResourceLocation pc
CL: net/minecraft/util/ResourceLocation$Serializer pc$a
CL: net/minecraft/util/StringUtils xw
CL: net/minecraft/client/Minecraft cft
CL: net/minecraft/client/Minecraft$1 cft$1
CL: net/minecraft/client/Minecraft$2 cft$2
CL: net/minecraft/client/multiplayer/ServerData crj
CL: net/minecraft/client/multiplayer/ServerData$ServerResourceMode crj$a
CL: net/minecraft/client/renderer/IImageBuffer cub
CL: net/minecraft/client/renderer/ImageBufferDownload cug
CL: net/minecraft/client/renderer/ThreadDownloadImageData ddc
CL: net/minecraft/client/renderer/ThreadDownloadImageData$1 ddc$1
CL: net/minecraft/client/renderer/texture/NativeImage ddg
CL: net/minecraft/client/renderer/texture/NativeImage$1 ddg$1
CL: net/minecraft/client/renderer/texture/NativeImage$PixelFormat ddg$a
CL: net/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode ddg$b
CL: net/minecraft/client/renderer/texture/NativeImage$WriteCallback ddg$c
CL: net/minecraft/client/renderer/texture/SimpleTexture ddi
CL: net/minecraft/client/renderer/texture/TextureManager ddn
CL: net/minecraft/client/renderer/texture/ITextureObject ddo
CL: net/minecraft/client/resources/DefaultPlayerSkin dec
CL: net/minecraft/client/resources/SkinManager deh
CL: net/minecraft/client/resources/SkinManager$1 deh$1
CL: net/minecraft/client/resources/SkinManager$2 deh$2
CL: net/minecraft/client/resources/SkinManager$SkinAvailableCallback deh$a
FD: net/minecraft/util/ResourceLocation/field_110626_a pc/a
FD: net/minecraft/util/ResourceLocation/field_110625_b pc/b
FD: net/minecraft/util/ResourceLocation/field_200118_c pc/c
FD: net/minecraft/util/StringUtils/field_76339_a xw/a
FD: net/minecraft/client/Minecraft$1/field_74532_a cft$1/a
FD: net/minecraft/client/Minecraft$2/field_210222_a cft$2/a
FD: net/minecraft/client/Minecraft$2/field_210223_b cft$2/b
FD: net/minecraft/client/Minecraft/field_175612_E cft/D
FD: net/minecraft/client/Minecraft/field_195555_I cft/E
FD: net/minecraft/client/Minecraft/field_147123_G cft/F
FD: net/minecraft/client/Minecraft/field_211120_F cft/G
FD: net/minecraft/client/Minecraft/field_130070_K cft/H
FD: net/minecraft/client/Minecraft/field_181038_N cft/I
FD: net/minecraft/client/Minecraft/field_195556_O cft/J
FD: net/minecraft/client/Minecraft/field_71422_O cft/K
FD: net/minecraft/client/Minecraft/field_71446_o cft/L
FD: net/minecraft/client/Minecraft/field_71432_P cft/M
FD: net/minecraft/client/Minecraft/field_184131_U cft/N
FD: net/minecraft/client/Minecraft/field_195557_T cft/O
FD: net/minecraft/client/Minecraft/field_71434_R cft/P
FD: net/minecraft/client/Minecraft/field_71433_S cft/Q
FD: net/minecraft/client/Minecraft/field_181541_X cft/R
FD: net/minecraft/client/Minecraft/field_71428_T cft/S
FD: net/minecraft/client/Minecraft/field_71427_U cft/T
FD: net/minecraft/client/Minecraft/field_175616_W cft/U
FD: net/minecraft/client/Minecraft/field_175621_X cft/V
FD: net/minecraft/client/Minecraft/field_175620_Y cft/W
FD: net/minecraft/client/Minecraft/field_175622_Z cft/X
FD: net/minecraft/client/Minecraft/field_193995_ae cft/Y
FD: net/minecraft/client/Minecraft/field_71449_j cft/Z
FD: net/minecraft/client/Minecraft/field_142025_a cft/a
FD: net/minecraft/client/Minecraft/field_211502_b cft/b
FD: net/minecraft/client/Minecraft/field_71464_q cft/c
FD: net/minecraft/client/Minecraft/field_71444_a cft/d
FD: net/minecraft/client/Minecraft/field_71442_b cft/e
FD: net/minecraft/client/Minecraft/field_195558_d cft/f
FD: net/minecraft/client/Minecraft/field_71441_e cft/g
FD: net/minecraft/client/Minecraft/field_71438_f cft/h
FD: net/minecraft/client/Minecraft/field_71439_g cft/i
FD: net/minecraft/client/Minecraft/field_147125_j cft/j
FD: net/minecraft/client/Minecraft/field_71452_i cft/k
FD: net/minecraft/client/Minecraft/field_71466_p cft/l
FD: net/minecraft/client/Minecraft/field_71462_r cft/m
FD: net/minecraft/client/Minecraft/field_71460_t cft/n
FD: net/minecraft/client/Minecraft/field_184132_p cft/o
FD: net/minecraft/client/Minecraft/field_71429_W cft/p
FD: net/minecraft/client/Minecraft/field_71456_v cft/q
FD: net/minecraft/client/Minecraft/field_71454_w cft/r
FD: net/minecraft/client/Minecraft/field_71476_x cft/s
FD: net/minecraft/client/Minecraft/field_71474_y cft/t
FD: net/minecraft/client/Minecraft/field_71417_B cft/u
FD: net/minecraft/client/Minecraft/field_195559_v cft/v
FD: net/minecraft/client/Minecraft/field_71412_D cft/w
FD: net/minecraft/client/Minecraft/field_181542_y cft/x
FD: net/minecraft/client/Minecraft/field_71424_I cft/y
FD: net/minecraft/client/Minecraft/field_71426_K cft/z
FD: net/minecraft/client/Minecraft/field_147128_au cft/aA
FD: net/minecraft/client/Minecraft/field_147127_av cft/aB
FD: net/minecraft/client/Minecraft/field_147126_aw cft/aC
FD: net/minecraft/client/Minecraft/field_211501_aD cft/aD
FD: net/minecraft/client/Minecraft/field_152355_az cft/aE
FD: net/minecraft/client/Minecraft/field_152350_aA cft/aF
FD: net/minecraft/client/Minecraft/field_152351_aB cft/aG
FD: net/minecraft/client/Minecraft/field_152352_aC cft/aH
FD: net/minecraft/client/Minecraft/field_175617_aL cft/aI
FD: net/minecraft/client/Minecraft/field_175618_aM cft/aJ
FD: net/minecraft/client/Minecraft/field_193034_aS cft/aK
FD: net/minecraft/client/Minecraft/field_71425_J cft/aL
FD: net/minecraft/client/Minecraft/field_71419_L cft/aM
FD: net/minecraft/client/Minecraft/field_71420_M cft/aN
FD: net/minecraft/client/Minecraft/field_193035_aW cft/aO
FD: net/minecraft/client/Minecraft/field_71465_an cft/aP
FD: net/minecraft/client/Minecraft/field_71445_n cft/aa
FD: net/minecraft/client/Minecraft/field_193996_ah cft/ab
FD: net/minecraft/client/Minecraft/field_71437_Z cft/ac
FD: net/minecraft/client/Minecraft/field_191950_u cft/ad
FD: net/minecraft/client/Minecraft/field_110446_Y cft/ae
FD: net/minecraft/client/Minecraft/field_110447_Z cft/af
FD: net/minecraft/client/Minecraft/field_184130_ao cft/ag
FD: net/minecraft/client/Minecraft/field_110453_aa cft/ah
FD: net/minecraft/client/Minecraft/field_71469_aa cft/ai
FD: net/minecraft/client/Minecraft/field_71470_ab cft/aj
FD: net/minecraft/client/Minecraft/field_71467_ac cft/ak
FD: net/minecraft/client/Minecraft/field_71475_ae cft/al
FD: net/minecraft/client/Minecraft/field_71477_af cft/am
FD: net/minecraft/client/Minecraft/field_71457_ai cft/an
FD: net/minecraft/client/Minecraft/field_181543_z cft/ao
FD: net/minecraft/client/Minecraft/field_147129_ai cft/ap
FD: net/minecraft/client/Minecraft/field_71459_aj cft/aq
FD: net/minecraft/client/Minecraft/field_71453_ak cft/ar
FD: net/minecraft/client/Minecraft/field_71455_al cft/as
FD: net/minecraft/client/Minecraft/field_110451_am cft/at
FD: net/minecraft/client/Minecraft/field_195554_ax cft/au
FD: net/minecraft/client/Minecraft/field_110448_aq cft/av
FD: net/minecraft/client/Minecraft/field_135017_as cft/aw
FD: net/minecraft/client/Minecraft/field_184127_aH cft/ax
FD: net/minecraft/client/Minecraft/field_184128_aI cft/ay
FD: net/minecraft/client/Minecraft/field_147124_at cft/az
FD: net/minecraft/client/multiplayer/ServerData$ServerResourceMode/ENABLED crj$a/a
FD: net/minecraft/client/multiplayer/ServerData$ServerResourceMode/DISABLED crj$a/b
FD: net/minecraft/client/multiplayer/ServerData$ServerResourceMode/PROMPT crj$a/c
FD: net/minecraft/client/multiplayer/ServerData$ServerResourceMode/field_152594_d crj$a/d
FD: net/minecraft/client/multiplayer/ServerData$ServerResourceMode/$VALUES crj$a/e
FD: net/minecraft/client/multiplayer/ServerData/field_78847_a crj/a
FD: net/minecraft/client/multiplayer/ServerData/field_78845_b crj/b
FD: net/minecraft/client/multiplayer/ServerData/field_78846_c crj/c
FD: net/minecraft/client/multiplayer/ServerData/field_78843_d crj/d
FD: net/minecraft/client/multiplayer/ServerData/field_78844_e crj/e
FD: net/minecraft/client/multiplayer/ServerData/field_82821_f crj/f
FD: net/minecraft/client/multiplayer/ServerData/field_82822_g crj/g
FD: net/minecraft/client/multiplayer/ServerData/field_78841_f crj/h
FD: net/minecraft/client/multiplayer/ServerData/field_147412_i crj/i
FD: net/minecraft/client/multiplayer/ServerData/field_152587_j crj/j
FD: net/minecraft/client/multiplayer/ServerData/field_147411_m crj/k
FD: net/minecraft/client/multiplayer/ServerData/field_181042_l crj/l
FD: net/minecraft/client/renderer/ThreadDownloadImageData$1/field_110932_a ddc$1/a
FD: net/minecraft/client/renderer/ThreadDownloadImageData/field_147644_c ddc/g
FD: net/minecraft/client/renderer/ThreadDownloadImageData/field_147643_d ddc/h
FD: net/minecraft/client/renderer/ThreadDownloadImageData/field_152434_e ddc/i
FD: net/minecraft/client/renderer/ThreadDownloadImageData/field_110562_b ddc/j
FD: net/minecraft/client/renderer/ThreadDownloadImageData/field_110563_c ddc/k
FD: net/minecraft/client/renderer/ThreadDownloadImageData/field_110561_e ddc/l
FD: net/minecraft/client/renderer/ThreadDownloadImageData/field_110559_g ddc/m
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/RGBA ddg$a/a
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/RGB ddg$a/b
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/LUMINANCE_ALPHA ddg$a/c
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/LUMINANCE ddg$a/d
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211659_e ddg$a/e
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211660_f ddg$a/f
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211661_g ddg$a/g
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211662_h ddg$a/h
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211663_i ddg$a/i
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211664_j ddg$a/j
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211665_k ddg$a/k
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211666_l ddg$a/l
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211667_m ddg$a/m
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211668_n ddg$a/n
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211669_o ddg$a/o
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211670_p ddg$a/p
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/field_211671_q ddg$a/q
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/$VALUES ddg$a/r
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode/RGBA ddg$b/a
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode/RGB ddg$b/b
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode/LUMINANCE_ALPHA ddg$b/c
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode/LUMINANCE ddg$b/d
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode/INTENSITY ddg$b/e
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode/field_211673_f ddg$b/f
FD: net/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode/$VALUES ddg$b/g
FD: net/minecraft/client/renderer/texture/NativeImage$WriteCallback/field_209268_a ddg$c/a
FD: net/minecraft/client/renderer/texture/NativeImage$WriteCallback/field_209269_b ddg$c/b
FD: net/minecraft/client/renderer/texture/NativeImage/field_209272_a ddg/a
FD: net/minecraft/client/renderer/texture/NativeImage/field_211680_b ddg/b
FD: net/minecraft/client/renderer/texture/NativeImage/field_195719_a ddg/c
FD: net/minecraft/client/renderer/texture/NativeImage/field_195720_b ddg/d
FD: net/minecraft/client/renderer/texture/NativeImage/field_195721_c ddg/e
FD: net/minecraft/client/renderer/texture/NativeImage/field_195722_d ddg/f
FD: net/minecraft/client/renderer/texture/NativeImage/field_195723_e ddg/g
FD: net/minecraft/client/renderer/texture/SimpleTexture/field_110568_b ddi/f
FD: net/minecraft/client/renderer/texture/SimpleTexture/field_147639_c ddi/g
FD: net/minecraft/client/renderer/texture/TextureManager/field_194008_a ddn/a
FD: net/minecraft/client/renderer/texture/TextureManager/field_147646_a ddn/b
FD: net/minecraft/client/renderer/texture/TextureManager/field_110585_a ddn/c
FD: net/minecraft/client/renderer/texture/TextureManager/field_110583_b ddn/d
FD: net/minecraft/client/renderer/texture/TextureManager/field_110584_c ddn/e
FD: net/minecraft/client/renderer/texture/TextureManager/field_110582_d ddn/f
FD: net/minecraft/client/resources/DefaultPlayerSkin/field_177337_a dec/a
FD: net/minecraft/client/resources/DefaultPlayerSkin/field_177336_b dec/b
FD: net/minecraft/client/resources/SkinManager$1/field_152787_a deh$1/a
FD: net/minecraft/client/resources/SkinManager$2/field_152635_a deh$2/a
FD: net/minecraft/client/resources/SkinManager$2/field_152636_b deh$2/b
FD: net/minecraft/client/resources/SkinManager$2/field_152637_c deh$2/c
FD: net/minecraft/client/resources/SkinManager$2/field_152638_d deh$2/d
FD: net/minecraft/client/resources/SkinManager$2/field_177249_e deh$2/e
FD: net/minecraft/client/resources/SkinManager$2/field_152639_e deh$2/f
FD: net/minecraft/client/resources/SkinManager/field_152794_b deh/a
FD: net/minecraft/client/resources/SkinManager/field_152795_c deh/b
FD: net/minecraft/client/resources/SkinManager/field_152796_d deh/c
FD: net/minecraft/client/resources/SkinManager/field_152797_e deh/d
FD: net/minecraft/client/resources/SkinManager/field_152798_f deh/e
MD: net/minecraft/util/ResourceLocation$Serializer/deserialize (Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/util/ResourceLocation; pc$a/a (Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lpc;
MD: net/minecraft/util/ResourceLocation$Serializer/serialize (Lnet/minecraft/util/ResourceLocation;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement; pc$a/a (Lpc;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
MD: net/minecraft/util/ResourceLocation$Serializer/serialize (Ljava/lang/Object;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement; pc$a/serialize (Ljava/lang/Object;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
MD: net/minecraft/util/ResourceLocation$Serializer/deserialize (Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object; pc$a/deserialize (Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;
MD: net/minecraft/util/ResourceLocation/func_110623_a ()Ljava/lang/String; pc/a ()Ljava/lang/String;
MD: net/minecraft/util/ResourceLocation/func_195824_a (C)Z pc/a (C)Z
MD: net/minecraft/util/ResourceLocation/func_195827_a (I)Z pc/a (I)Z
MD: net/minecraft/util/ResourceLocation/func_195826_a (Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/util/ResourceLocation; pc/a (Lcom/mojang/brigadier/StringReader;)Lpc;
MD: net/minecraft/util/ResourceLocation/func_208304_a (Ljava/lang/String;)Lnet/minecraft/util/ResourceLocation; pc/a (Ljava/lang/String;)Lpc;
MD: net/minecraft/util/ResourceLocation/func_195828_a (Ljava/lang/String;C)Lnet/minecraft/util/ResourceLocation; pc/a (Ljava/lang/String;C)Lpc;
MD: net/minecraft/util/ResourceLocation/compareTo (Lnet/minecraft/util/ResourceLocation;)I pc/a (Lpc;)I
MD: net/minecraft/util/ResourceLocation/func_110624_b ()Ljava/lang/String; pc/b ()Ljava/lang/String;
MD: net/minecraft/util/ResourceLocation/func_195825_b (I)Z pc/b (I)Z
MD: net/minecraft/util/ResourceLocation/func_195823_b (Ljava/lang/String;C)[Ljava/lang/String; pc/b (Ljava/lang/String;C)[Ljava/lang/String;
MD: net/minecraft/util/ResourceLocation/equals (Ljava/lang/Object;)Z pc/equals (Ljava/lang/Object;)Z
MD: net/minecraft/util/ResourceLocation/hashCode ()I pc/hashCode ()I
MD: net/minecraft/util/ResourceLocation/toString ()Ljava/lang/String; pc/toString ()Ljava/lang/String;
MD: net/minecraft/util/ResourceLocation/compareTo (Ljava/lang/Object;)I pc/compareTo (Ljava/lang/Object;)I
MD: net/minecraft/util/StringUtils/func_76337_a (I)Ljava/lang/String; xw/a (I)Ljava/lang/String;
MD: net/minecraft/util/StringUtils/func_76338_a (Ljava/lang/String;)Ljava/lang/String; xw/a (Ljava/lang/String;)Ljava/lang/String;
MD: net/minecraft/util/StringUtils/func_151246_b (Ljava/lang/String;)Z xw/b (Ljava/lang/String;)Z
MD: net/minecraft/client/Minecraft$1/run ()V cft$1/run ()V
MD: net/minecraft/client/Minecraft/func_71378_E ()Lnet/minecraft/profiler/Snooper; cft/A ()Ladu;
MD: net/minecraft/client/Minecraft/func_110432_I ()Lnet/minecraft/util/Session; cft/B ()Lcga;
MD: net/minecraft/client/Minecraft/func_181037_M ()Lcom/mojang/authlib/properties/PropertyMap; cft/C ()Lcom/mojang/authlib/properties/PropertyMap;
MD: net/minecraft/client/Minecraft/func_110437_J ()Ljava/net/Proxy; cft/D ()Ljava/net/Proxy;
MD: net/minecraft/client/Minecraft/func_110434_K ()Lnet/minecraft/client/renderer/texture/TextureManager; cft/E ()Lddn;
MD: net/minecraft/client/Minecraft/func_195551_G ()Lnet/minecraft/resources/IResourceManager; cft/F ()Lvf;
MD: net/minecraft/client/Minecraft/func_195548_H ()Lnet/minecraft/resources/ResourcePackList; cft/G ()Lux;
MD: net/minecraft/client/Minecraft/func_195541_I ()Lnet/minecraft/client/resources/DownloadingPackFinder; cft/H ()Ldea;
MD: net/minecraft/client/Minecraft/func_195549_J ()Ljava/io/File; cft/I ()Ljava/io/File;
MD: net/minecraft/client/Minecraft/func_135016_M ()Lnet/minecraft/client/resources/LanguageManager; cft/J ()Ldel;
MD: net/minecraft/client/Minecraft/func_147117_R ()Lnet/minecraft/client/renderer/texture/TextureMap; cft/K ()Lddl;
MD: net/minecraft/client/Minecraft/func_147111_S ()Z cft/L ()Z
MD: net/minecraft/client/Minecraft/func_147113_T ()Z cft/M ()Z
MD: net/minecraft/client/Minecraft/func_147118_V ()Lnet/minecraft/client/audio/SoundHandler; cft/N ()Ldgt;
MD: net/minecraft/client/Minecraft/func_147109_W ()Lnet/minecraft/client/audio/MusicTicker$MusicType; cft/O ()Ldgq$a;
MD: net/minecraft/client/Minecraft/func_70002_Q ()Z cft/P ()Z
MD: net/minecraft/client/Minecraft/func_152347_ac ()Lcom/mojang/authlib/minecraft/MinecraftSessionService; cft/Q ()Lcom/mojang/authlib/minecraft/MinecraftSessionService;
MD: net/minecraft/client/Minecraft/func_152342_ad ()Lnet/minecraft/client/resources/SkinManager; cft/R ()Ldeh;
MD: net/minecraft/client/Minecraft/func_175606_aa ()Lnet/minecraft/entity/Entity; cft/S ()Laer;
MD: net/minecraft/client/Minecraft/func_175602_ab ()Lnet/minecraft/client/renderer/BlockRendererDispatcher; cft/T ()Lcuu;
MD: net/minecraft/client/Minecraft/func_175598_ae ()Lnet/minecraft/client/renderer/entity/RenderManager; cft/U ()Lcyo;
MD: net/minecraft/client/Minecraft/func_175599_af ()Lnet/minecraft/client/renderer/ItemRenderer; cft/V ()Lczg;
MD: net/minecraft/client/Minecraft/func_175597_ag ()Lnet/minecraft/client/renderer/FirstPersonRenderer; cft/W ()Lcuc;
MD: net/minecraft/client/Minecraft/func_175610_ah ()I cft/X ()I
MD: net/minecraft/client/Minecraft/func_181539_aj ()Lnet/minecraft/util/FrameTimer; cft/Y ()Lxi;
MD: net/minecraft/client/Minecraft/func_181540_al ()Z cft/Z ()Z
MD: net/minecraft/client/Minecraft/func_99999_d ()V cft/a ()V
MD: net/minecraft/client/Minecraft/func_71383_b (I)V cft/a (I)V
MD: net/minecraft/client/Minecraft/func_181536_a (IIIIIIIIII)V cft/a (IIIIIIIIII)V
MD: net/minecraft/client/Minecraft/func_195545_a (IJ)V cft/a (IJ)V
MD: net/minecraft/client/Minecraft/func_70000_a (Lnet/minecraft/profiler/Snooper;)V cft/a (Ladu;)V
MD: net/minecraft/client/Minecraft/func_175607_a (Lnet/minecraft/entity/Entity;)V cft/a (Laer;)V
MD: net/minecraft/client/Minecraft/func_193985_a (Lnet/minecraft/item/ItemStack;)Ljava/lang/Iterable; cft/a (Late;)Ljava/lang/Iterable;
MD: net/minecraft/client/Minecraft/func_184119_a (Lnet/minecraft/item/ItemStack;Lnet/minecraft/tileentity/TileEntity;)Lnet/minecraft/item/ItemStack; cft/a (Late;Lbji;)Late;
MD: net/minecraft/client/Minecraft/func_200237_a (Lnet/minecraft/item/crafting/IRecipe;)Lnet/minecraft/util/ResourceLocation; cft/a (Lavk;)Lpc;
MD: net/minecraft/client/Minecraft/func_71404_a (Lnet/minecraft/crash/CrashReport;)V cft/a (Lb;)V
MD: net/minecraft/client/Minecraft/func_212315_a (Lnet/minecraft/world/dimension/DimensionType;)V cft/a (Lbod;)V
MD: net/minecraft/client/Minecraft/access$000 (Lnet/minecraft/client/Minecraft;)Z cft/a (Lcft;)Z
MD: net/minecraft/client/Minecraft/func_147108_a (Lnet/minecraft/client/gui/GuiScreen;)V cft/a (Lckd;)V
MD: net/minecraft/client/Minecraft/func_193992_a (Lnet/minecraft/client/gui/recipebook/RecipeList;)Ljava/lang/Iterable; cft/a (Lcmk;)Ljava/lang/Iterable;
MD: net/minecraft/client/Minecraft/func_71403_a (Lnet/minecraft/client/multiplayer/WorldClient;)V cft/a (Lcrg;)V
MD: net/minecraft/client/Minecraft/func_205055_a (Lnet/minecraft/client/multiplayer/WorldClient;Lnet/minecraft/client/gui/GuiScreen;)V cft/a (Lcrg;Lckd;)V
MD: net/minecraft/client/Minecraft/func_71351_a (Lnet/minecraft/client/multiplayer/ServerData;)V cft/a (Lcrj;)V
MD: net/minecraft/client/Minecraft/func_193987_a (Lnet/minecraft/client/util/SearchTreeManager$Key;)Lnet/minecraft/client/util/ISearchTree; cft/a (Ldgc$a;)Ldgd;
MD: net/minecraft/client/Minecraft/func_209507_a (Lnet/minecraft/util/text/ITextComponent;)V cft/a (Lij;)V
MD: net/minecraft/client/Minecraft/func_211108_a (Ljava/lang/Integer;Ljava/lang/String;)V cft/a (Ljava/lang/Integer;Ljava/lang/String;)V
MD: net/minecraft/client/Minecraft/func_152344_a (Ljava/lang/Runnable;)Lcom/google/common/util/concurrent/ListenableFuture; cft/a (Ljava/lang/Runnable;)Lcom/google/common/util/concurrent/ListenableFuture;
MD: net/minecraft/client/Minecraft/func_200234_a (Ljava/lang/String;)Z cft/a (Ljava/lang/String;)Z
MD: net/minecraft/client/Minecraft/func_71371_a (Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/world/WorldSettings;)V cft/a (Ljava/lang/String;Ljava/lang/String;Layd;)V
MD: net/minecraft/client/Minecraft/func_211818_a (Ljava/lang/String;ZLjava/util/function/Supplier;Lnet/minecraft/resources/IResourcePack;Lnet/minecraft/resources/data/PackMetadataSection;Lnet/minecraft/resources/ResourcePackInfo$Priority;)Lnet/minecraft/client/resources/ResourcePackInfoClient; cft/a (Ljava/lang/String;ZLjava/util/function/Supplier;Lul;Luq;Lva$a;)Ldei;
MD: net/minecraft/client/Minecraft/func_211100_a (Ljava/util/List;IJ)V cft/a (Ljava/util/List;IJ)V
MD: net/minecraft/client/Minecraft/func_152343_a (Ljava/util/concurrent/Callable;)Lcom/google/common/util/concurrent/ListenableFuture; cft/a (Ljava/util/concurrent/Callable;)Lcom/google/common/util/concurrent/ListenableFuture;
MD: net/minecraft/client/Minecraft/func_211809_a (Ljava/util/function/Supplier;)Lnet/minecraft/resources/IResourcePack; cft/a (Ljava/util/function/Supplier;)Lul;
MD: net/minecraft/client/Minecraft/func_181537_a (Z)V cft/a (Z)V
MD: net/minecraft/client/Minecraft/func_147110_a ()Lnet/minecraft/client/shader/Framebuffer; cft/b ()Lcul;
MD: net/minecraft/client/Minecraft/func_193988_b (Lnet/minecraft/item/ItemStack;)Ljava/lang/Iterable; cft/b (Late;)Ljava/lang/Iterable;
MD: net/minecraft/client/Minecraft/func_200240_b (Lnet/minecraft/item/crafting/IRecipe;)Ljava/util/stream/Stream; cft/b (Lavk;)Ljava/util/stream/Stream;
MD: net/minecraft/client/Minecraft/func_71396_d (Lnet/minecraft/crash/CrashReport;)Lnet/minecraft/crash/CrashReport; cft/b (Lb;)Lb;
MD: net/minecraft/client/Minecraft/func_193990_a (Lnet/minecraft/client/gui/recipebook/RecipeList;)Ljava/lang/Iterable; cft/b (Lcmk;)Ljava/lang/Iterable;
MD: net/minecraft/client/Minecraft/func_200235_b (Lnet/minecraft/util/text/ITextComponent;)Ljava/lang/String; cft/b (Lij;)Ljava/lang/String;
MD: net/minecraft/client/Minecraft/func_200241_b (Ljava/lang/String;)Z cft/b (Ljava/lang/String;)Z
MD: net/minecraft/client/Minecraft/func_175600_c ()Ljava/lang/String; cft/c ()Ljava/lang/String;
MD: net/minecraft/client/Minecraft/func_71377_b (Lnet/minecraft/crash/CrashReport;)V cft/c (Lb;)V
MD: net/minecraft/client/Minecraft/func_211817_c (Lnet/minecraft/util/text/ITextComponent;)Ljava/lang/String; cft/c (Lij;)Ljava/lang/String;
MD: net/minecraft/client/Minecraft/func_195542_b (Z)V cft/c (Z)V
MD: net/minecraft/client/Minecraft/func_184123_d ()Ljava/lang/String; cft/d ()Ljava/lang/String;
MD: net/minecraft/client/Minecraft/func_147115_a (Z)V cft/d (Z)V
MD: net/minecraft/client/Minecraft/func_211821_e ()Z cft/e ()Z
MD: net/minecraft/client/Minecraft/func_110436_a ()V cft/f ()V
MD: net/minecraft/client/Minecraft/func_71359_d ()Lnet/minecraft/world/storage/ISaveFormat; cft/g ()Lcce;
MD: net/minecraft/client/Minecraft/func_71405_e ()V cft/h ()V
MD: net/minecraft/client/Minecraft/func_71398_f ()V cft/i ()V
MD: net/minecraft/client/Minecraft/func_71400_g ()V cft/j ()V
MD: net/minecraft/client/Minecraft/func_71385_j ()V cft/k ()V
MD: net/minecraft/client/Minecraft/func_181535_r ()Lnet/minecraft/client/audio/MusicTicker; cft/l ()Ldgq;
MD: net/minecraft/client/Minecraft/func_71407_l ()V cft/m ()V
MD: net/minecraft/client/Minecraft/func_71355_q ()Z cft/n ()Z
MD: net/minecraft/client/Minecraft/func_147114_u ()Lnet/minecraft/client/network/NetHandlerPlayClient; cft/o ()Lcrd;
MD: net/minecraft/client/Minecraft/func_71382_s ()Z cft/p ()Z
MD: net/minecraft/client/Minecraft/func_71375_t ()Z cft/q ()Z
MD: net/minecraft/client/Minecraft/func_71379_u ()Z cft/r ()Z
MD: net/minecraft/client/Minecraft/func_71410_x ()Lnet/minecraft/client/Minecraft; cft/s ()Lcft;
MD: net/minecraft/client/Minecraft/func_175603_A ()Lcom/google/common/util/concurrent/ListenableFuture; cft/t ()Lcom/google/common/util/concurrent/ListenableFuture;
MD: net/minecraft/client/Minecraft/func_71369_N ()I cft/u ()I
MD: net/minecraft/client/Minecraft/func_147104_D ()Lnet/minecraft/client/multiplayer/ServerData; cft/v ()Lcrj;
MD: net/minecraft/client/Minecraft/func_71387_A ()Z cft/w ()Z
MD: net/minecraft/client/Minecraft/func_71356_B ()Z cft/x ()Z
MD: net/minecraft/client/Minecraft/func_71401_C ()Lnet/minecraft/server/integrated/IntegratedServer; cft/y ()Ldgh;
MD: net/minecraft/client/Minecraft/func_71363_D ()V cft/z ()V
MD: net/minecraft/client/Minecraft/func_211816_aA ()Ljava/lang/String; cft/aA ()Ljava/lang/String;
MD: net/minecraft/client/Minecraft/func_211112_aw ()Ljava/lang/String; cft/aB ()Ljava/lang/String;
MD: net/minecraft/client/Minecraft/func_211115_ay ()Ljava/lang/String; cft/aC ()Ljava/lang/String;
MD: net/minecraft/client/Minecraft/func_211117_az ()Ljava/lang/String; cft/aD ()Ljava/lang/String;
MD: net/minecraft/client/Minecraft/func_210110_az ()Ljava/lang/String; cft/aE ()Ljava/lang/String;
MD: net/minecraft/client/Minecraft/func_210108_aA ()Ljava/lang/String; cft/aF ()Ljava/lang/String;
MD: net/minecraft/client/Minecraft/func_212317_aG ()Z cft/aG ()Z
MD: net/minecraft/client/Minecraft/func_212316_aH ()V cft/aH ()V
MD: net/minecraft/client/Minecraft/func_211813_aH ()J cft/aI ()J
MD: net/minecraft/client/Minecraft/func_184126_aj ()Lcom/mojang/datafixers/DataFixer; cft/aa ()Lcom/mojang/datafixers/DataFixer;
MD: net/minecraft/client/Minecraft/func_184121_ak ()F cft/ab ()F
MD: net/minecraft/client/Minecraft/func_193989_ak ()F cft/ac ()F
MD: net/minecraft/client/Minecraft/func_184125_al ()Lnet/minecraft/client/renderer/color/BlockColors; cft/ad ()Lcgf;
MD: net/minecraft/client/Minecraft/func_189648_am ()Z cft/af ()Z
MD: net/minecraft/client/Minecraft/func_193033_an ()Lnet/minecraft/client/gui/toasts/GuiToast; cft/ag ()Lcib;
MD: net/minecraft/client/Minecraft/func_193032_ao ()Lnet/minecraft/client/tutorial/Tutorial; cft/ah ()Ldhe;
MD: net/minecraft/client/Minecraft/func_195544_aj ()Z cft/ai ()Z
MD: net/minecraft/client/Minecraft/func_199403_al ()Lnet/minecraft/client/settings/CreativeSettings; cft/aj ()Lcfn;
MD: net/minecraft/client/Minecraft/func_209506_al ()Lnet/minecraft/client/renderer/model/ModelManager; cft/ak ()Ldfd;
MD: net/minecraft/client/Minecraft/func_211500_ak ()Lnet/minecraft/client/gui/fonts/FontResourceManager; cft/al ()Lcif;
MD: net/minecraft/client/Minecraft/func_71384_a ()V cft/am ()V
MD: net/minecraft/client/Minecraft/func_211118_al ()V cft/an ()V
MD: net/minecraft/client/Minecraft/func_193986_ar ()V cft/ao ()V
MD: net/minecraft/client/Minecraft/func_147122_X ()Z cft/ap ()Z
MD: net/minecraft/client/Minecraft/func_71389_H ()V cft/aq ()V
MD: net/minecraft/client/Minecraft/func_195547_ap ()V cft/ar ()V
MD: net/minecraft/client/Minecraft/func_203410_as ()V cft/as ()V
MD: net/minecraft/client/Minecraft/func_147116_af ()V cft/at ()V
MD: net/minecraft/client/Minecraft/func_147121_ag ()V cft/au ()V
MD: net/minecraft/client/Minecraft/func_152345_ab ()Z cft/av ()Z
MD: net/minecraft/client/Minecraft/func_184117_aA ()V cft/aw ()V
MD: net/minecraft/client/Minecraft/func_147112_ai ()V cft/ax ()V
MD: net/minecraft/client/Minecraft/func_181538_aA ()Ljava/lang/String; cft/ay ()Ljava/lang/String;
MD: net/minecraft/client/Minecraft/func_211822_az ()Ljava/lang/String; cft/az ()Ljava/lang/String;
MD: net/minecraft/client/Minecraft/getFocused ()Lnet/minecraft/client/gui/IGuiEventListener; cft/getFocused ()Lchr;
MD: net/minecraft/client/multiplayer/ServerData$ServerResourceMode/func_152589_a ()Lnet/minecraft/util/text/ITextComponent; crj$a/a ()Lij;
MD: net/minecraft/client/multiplayer/ServerData$ServerResourceMode/values ()[Lnet/minecraft/client/multiplayer/ServerData$ServerResourceMode; crj$a/values ()[Lcrj$a;
MD: net/minecraft/client/multiplayer/ServerData$ServerResourceMode/valueOf (Ljava/lang/String;)Lnet/minecraft/client/multiplayer/ServerData$ServerResourceMode; crj$a/valueOf (Ljava/lang/String;)Lcrj$a;
MD: net/minecraft/client/multiplayer/ServerData/func_78836_a ()Lnet/minecraft/nbt/NBTTagCompound; crj/a ()Lgy;
MD: net/minecraft/client/multiplayer/ServerData/func_152584_a (Lnet/minecraft/client/multiplayer/ServerData$ServerResourceMode;)V crj/a (Lcrj$a;)V
MD: net/minecraft/client/multiplayer/ServerData/func_152583_a (Lnet/minecraft/client/multiplayer/ServerData;)V crj/a (Lcrj;)V
MD: net/minecraft/client/multiplayer/ServerData/func_78837_a (Lnet/minecraft/nbt/NBTTagCompound;)Lnet/minecraft/client/multiplayer/ServerData; crj/a (Lgy;)Lcrj;
MD: net/minecraft/client/multiplayer/ServerData/func_147407_a (Ljava/lang/String;)V crj/a (Ljava/lang/String;)V
MD: net/minecraft/client/multiplayer/ServerData/func_152586_b ()Lnet/minecraft/client/multiplayer/ServerData$ServerResourceMode; crj/b ()Lcrj$a;
MD: net/minecraft/client/multiplayer/ServerData/func_147409_e ()Ljava/lang/String; crj/c ()Ljava/lang/String;
MD: net/minecraft/client/multiplayer/ServerData/func_181041_d ()Z crj/d ()Z
MD: net/minecraft/client/renderer/IImageBuffer/func_152634_a ()V cub/a ()V
MD: net/minecraft/client/renderer/IImageBuffer/func_195786_a (Lnet/minecraft/client/renderer/texture/NativeImage;)Lnet/minecraft/client/renderer/texture/NativeImage; cub/a (Lddg;)Lddg;
MD: net/minecraft/client/renderer/ImageBufferDownload/func_152634_a ()V cug/a ()V
MD: net/minecraft/client/renderer/ImageBufferDownload/func_195786_a (Lnet/minecraft/client/renderer/texture/NativeImage;)Lnet/minecraft/client/renderer/texture/NativeImage; cug/a (Lddg;)Lddg;
MD: net/minecraft/client/renderer/ImageBufferDownload/func_195788_a (Lnet/minecraft/client/renderer/texture/NativeImage;IIII)V cug/a (Lddg;IIII)V
MD: net/minecraft/client/renderer/ImageBufferDownload/func_195787_b (Lnet/minecraft/client/renderer/texture/NativeImage;IIII)V cug/b (Lddg;IIII)V
MD: net/minecraft/client/renderer/ThreadDownloadImageData$1/func_195658_a (Lnet/minecraft/client/renderer/texture/NativeImage;)V ddc$1/a (Lddg;)V
MD: net/minecraft/client/renderer/ThreadDownloadImageData$1/func_195657_a (Ljava/io/InputStream;)V ddc$1/a (Ljava/io/InputStream;)V
MD: net/minecraft/client/renderer/ThreadDownloadImageData$1/run ()V ddc$1/run ()V
MD: net/minecraft/client/renderer/ThreadDownloadImageData/func_152433_a ()V ddc/a ()V
MD: net/minecraft/client/renderer/ThreadDownloadImageData/access$000 (Lnet/minecraft/client/renderer/ThreadDownloadImageData;)Ljava/lang/String; ddc/a (Lddc;)Ljava/lang/String;
MD: net/minecraft/client/renderer/ThreadDownloadImageData/func_195417_a (Lnet/minecraft/client/renderer/texture/NativeImage;)V ddc/a (Lddg;)V
MD: net/minecraft/client/renderer/ThreadDownloadImageData/func_195413_a (Lnet/minecraft/resources/IResourceManager;)V ddc/a (Lvf;)V
MD: net/minecraft/client/renderer/ThreadDownloadImageData/access$100 (Lnet/minecraft/client/renderer/ThreadDownloadImageData;)Ljava/io/File; ddc/b (Lddc;)Ljava/io/File;
MD: net/minecraft/client/renderer/ThreadDownloadImageData/func_195416_b (Lnet/minecraft/client/renderer/texture/NativeImage;)V ddc/b (Lddg;)V
MD: net/minecraft/client/renderer/ThreadDownloadImageData/access$300 (Lnet/minecraft/client/renderer/ThreadDownloadImageData;)Lnet/minecraft/client/renderer/IImageBuffer; ddc/c (Lddc;)Lcub;
MD: net/minecraft/client/renderer/ThreadDownloadImageData/access$200 ()Lorg/apache/logging/log4j/Logger; ddc/e ()Lorg/apache/logging/log4j/Logger;
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211651_a ()I ddg$a/a ()I
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211652_a (I)Lnet/minecraft/client/renderer/texture/NativeImage$PixelFormat; ddg$a/a (I)Lddg$a;
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211655_a (Lnet/minecraft/client/renderer/texture/NativeImage$PixelFormat;)I ddg$a/a (Lddg$a;)I
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211656_b ()V ddg$a/b ()V
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211646_b (I)Lnet/minecraft/client/renderer/texture/NativeImage$PixelFormat; ddg$a/b (I)Lddg$a;
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211658_c ()V ddg$a/c ()V
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211650_d ()I ddg$a/d ()I
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211645_i ()Z ddg$a/i ()Z
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211648_n ()I ddg$a/n ()I
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211653_r ()Z ddg$a/r ()Z
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211647_v ()I ddg$a/v ()I
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/func_211654_w ()Z ddg$a/w ()Z
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/values ()[Lnet/minecraft/client/renderer/texture/NativeImage$PixelFormat; ddg$a/values ()[Lddg$a;
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormat/valueOf (Ljava/lang/String;)Lnet/minecraft/client/renderer/texture/NativeImage$PixelFormat; ddg$a/valueOf (Ljava/lang/String;)Lddg$a;
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode/func_211672_a ()I ddg$b/a ()I
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode/values ()[Lnet/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode; ddg$b/values ()[Lddg$b;
MD: net/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode/valueOf (Ljava/lang/String;)Lnet/minecraft/client/renderer/texture/NativeImage$PixelFormatGLCode; ddg$b/valueOf (Ljava/lang/String;)Lddg$b;
MD: net/minecraft/client/renderer/texture/NativeImage$WriteCallback/func_209267_a ()V ddg$c/a ()V
MD: net/minecraft/client/renderer/texture/NativeImage$WriteCallback/invoke (JJI)V ddg$c/invoke (JJI)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195702_a ()I ddg/a ()I
MD: net/minecraft/client/renderer/texture/NativeImage/func_195709_a (II)I ddg/a (II)I
MD: net/minecraft/client/renderer/texture/NativeImage/func_195700_a (III)V ddg/a (III)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195715_a (IIIII)V ddg/a (IIIII)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195706_a (IIIIIIIZ)V ddg/a (IIIIIIIZ)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195712_a (IIIIIIIZZZ)V ddg/a (IIIIIIIZZZ)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195699_a (IIIIIIZZ)V ddg/a (IIIIIIZZ)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195708_a (IIIILnet/minecraft/client/renderer/texture/NativeImage;)V ddg/a (IIIILddg;)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195697_a (IIIZ)V ddg/a (IIIZ)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195717_a (IZ)V ddg/a (IZ)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_211679_a (Lnet/minecraft/client/renderer/texture/NativeImage$PixelFormat;Ljava/io/InputStream;)Lnet/minecraft/client/renderer/texture/NativeImage; ddg/a (Lddg$a;Ljava/io/InputStream;)Lddg;
MD: net/minecraft/client/renderer/texture/NativeImage/func_211677_a (Lnet/minecraft/client/renderer/texture/NativeImage$PixelFormat;Ljava/nio/ByteBuffer;)Lnet/minecraft/client/renderer/texture/NativeImage; ddg/a (Lddg$a;Ljava/nio/ByteBuffer;)Lddg;
MD: net/minecraft/client/renderer/texture/NativeImage/func_195703_a (Lnet/minecraft/client/renderer/texture/NativeImage;)V ddg/a (Lddg;)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_209271_a (Ljava/io/File;)V ddg/a (Ljava/io/File;)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195713_a (Ljava/io/InputStream;)Lnet/minecraft/client/renderer/texture/NativeImage; ddg/a (Ljava/io/InputStream;)Lddg;
MD: net/minecraft/client/renderer/texture/NativeImage/func_195704_a (Ljava/nio/ByteBuffer;)Lnet/minecraft/client/renderer/texture/NativeImage; ddg/a (Ljava/nio/ByteBuffer;)Lddg;
MD: net/minecraft/client/renderer/texture/NativeImage/func_209270_a (Ljava/nio/file/Path;)V ddg/a (Ljava/nio/file/Path;)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_211676_a (Lorg/lwjgl/stb/STBTTFontinfo;IIIFFFFII)V ddg/a (Lorg/lwjgl/stb/STBTTFontinfo;IIIFFFFII)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195701_a (Z)V ddg/a (Z)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195705_a (ZZ)V ddg/a (ZZ)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195714_b ()I ddg/b ()I
MD: net/minecraft/client/renderer/texture/NativeImage/func_195718_b (III)V ddg/b (III)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195707_b (Z)V ddg/b (Z)V
MD: net/minecraft/client/renderer/texture/NativeImage/func_211678_c ()Lnet/minecraft/client/renderer/texture/NativeImage$PixelFormat; ddg/c ()Lddg$a;
MD: net/minecraft/client/renderer/texture/NativeImage/func_195716_c ()[I ddg/d ()[I
MD: net/minecraft/client/renderer/texture/NativeImage/func_211675_e (II)B ddg/e (II)B
MD: net/minecraft/client/renderer/texture/NativeImage/func_195710_e ()V ddg/f ()V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195711_f ()V ddg/g ()V
MD: net/minecraft/client/renderer/texture/NativeImage/func_195696_g ()V ddg/h ()V
MD: net/minecraft/client/renderer/texture/NativeImage/close ()V ddg/close ()V
MD: net/minecraft/client/renderer/texture/NativeImage/toString ()Ljava/lang/String; ddg/toString ()Ljava/lang/String;
MD: net/minecraft/client/renderer/texture/SimpleTexture/func_195413_a (Lnet/minecraft/resources/IResourceManager;)V ddi/a (Lvf;)V
MD: net/minecraft/client/renderer/texture/TextureManager/func_210123_a (Lnet/minecraft/client/renderer/texture/ITextureObject;)Ljava/lang/String; ddn/a (Lddo;)Ljava/lang/String;
MD: net/minecraft/client/renderer/texture/TextureManager/func_110578_a (Ljava/lang/String;Lnet/minecraft/client/renderer/texture/DynamicTexture;)Lnet/minecraft/util/ResourceLocation; ddn/a (Ljava/lang/String;Lddb;)Lpc;
MD: net/minecraft/client/renderer/texture/TextureManager/func_110577_a (Lnet/minecraft/util/ResourceLocation;)V ddn/a (Lpc;)V
MD: net/minecraft/client/renderer/texture/TextureManager/func_110579_a (Lnet/minecraft/util/ResourceLocation;Lnet/minecraft/client/renderer/texture/ITextureObject;)Z ddn/a (Lpc;Lddo;)Z
MD: net/minecraft/client/renderer/texture/TextureManager/func_110580_a (Lnet/minecraft/util/ResourceLocation;Lnet/minecraft/client/renderer/texture/ITickableTextureObject;)Z ddn/a (Lpc;Lddr;)Z
MD: net/minecraft/client/renderer/texture/TextureManager/func_195410_a (Lnet/minecraft/resources/IResourceManager;)V ddn/a (Lvf;)V
MD: net/minecraft/client/renderer/texture/TextureManager/func_110581_b (Lnet/minecraft/util/ResourceLocation;)Lnet/minecraft/client/renderer/texture/ITextureObject; ddn/b (Lpc;)Lddo;
MD: net/minecraft/client/renderer/texture/TextureManager/func_147645_c (Lnet/minecraft/util/ResourceLocation;)V ddn/c (Lpc;)V
MD: net/minecraft/client/renderer/texture/TextureManager/func_110550_d ()V ddn/e ()V
MD: net/minecraft/client/renderer/texture/ITextureObject/func_195413_a (Lnet/minecraft/resources/IResourceManager;)V ddo/a (Lvf;)V
MD: net/minecraft/client/renderer/texture/ITextureObject/func_174935_a ()V ddo/b ()V
MD: net/minecraft/client/renderer/texture/ITextureObject/func_174936_b (ZZ)V ddo/b (ZZ)V
MD: net/minecraft/client/renderer/texture/ITextureObject/func_110552_b ()I ddo/c ()I
MD: net/minecraft/client/renderer/texture/ITextureObject/func_195412_h ()V ddo/h ()V
MD: net/minecraft/client/resources/DefaultPlayerSkin/func_177335_a ()Lnet/minecraft/util/ResourceLocation; dec/a ()Lpc;
MD: net/minecraft/client/resources/DefaultPlayerSkin/func_177334_a (Ljava/util/UUID;)Lnet/minecraft/util/ResourceLocation; dec/a (Ljava/util/UUID;)Lpc;
MD: net/minecraft/client/resources/DefaultPlayerSkin/func_177332_b (Ljava/util/UUID;)Ljava/lang/String; dec/b (Ljava/util/UUID;)Ljava/lang/String;
MD: net/minecraft/client/resources/DefaultPlayerSkin/func_177333_c (Ljava/util/UUID;)Z dec/c (Ljava/util/UUID;)Z
MD: net/minecraft/client/resources/SkinManager$1/load (Lcom/mojang/authlib/GameProfile;)Ljava/util/Map; deh$1/a (Lcom/mojang/authlib/GameProfile;)Ljava/util/Map;
MD: net/minecraft/client/resources/SkinManager$1/load (Ljava/lang/Object;)Ljava/lang/Object; deh$1/load (Ljava/lang/Object;)Ljava/lang/Object;
MD: net/minecraft/client/resources/SkinManager$2/func_152634_a ()V deh$2/a ()V
MD: net/minecraft/client/resources/SkinManager$2/func_195786_a (Lnet/minecraft/client/renderer/texture/NativeImage;)Lnet/minecraft/client/renderer/texture/NativeImage; deh$2/a (Lddg;)Lddg;
MD: net/minecraft/client/resources/SkinManager$SkinAvailableCallback/func_180521_a (Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Lnet/minecraft/util/ResourceLocation;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;)V deh$a/onSkinTextureAvailable (Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Lpc;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;)V
MD: net/minecraft/client/resources/SkinManager/func_152788_a (Lcom/mojang/authlib/GameProfile;)Ljava/util/Map; deh/a (Lcom/mojang/authlib/GameProfile;)Ljava/util/Map;
MD: net/minecraft/client/resources/SkinManager/func_152790_a (Lcom/mojang/authlib/GameProfile;Lnet/minecraft/client/resources/SkinManager$SkinAvailableCallback;Z)V deh/a (Lcom/mojang/authlib/GameProfile;Ldeh$a;Z)V
MD: net/minecraft/client/resources/SkinManager/func_210275_a (Lcom/mojang/authlib/GameProfile;ZLnet/minecraft/client/resources/SkinManager$SkinAvailableCallback;)V deh/a (Lcom/mojang/authlib/GameProfile;ZLdeh$a;)V
MD: net/minecraft/client/resources/SkinManager/func_152792_a (Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;)Lnet/minecraft/util/ResourceLocation; deh/a (Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;)Lpc;
MD: net/minecraft/client/resources/SkinManager/func_152789_a (Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Lnet/minecraft/client/resources/SkinManager$SkinAvailableCallback;)Lnet/minecraft/util/ResourceLocation; deh/a (Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Ldeh$a;)Lpc;
MD: net/minecraft/client/resources/SkinManager/func_210276_a (Ljava/util/Map;Lnet/minecraft/client/resources/SkinManager$SkinAvailableCallback;)V deh/a (Ljava/util/Map;Ldeh$a;)V
+7
View File
@@ -0,0 +1,7 @@
minecraft_version=1.13.2
minecraft_full_versions=1.13.2
#forge gradle needs forge version
forge_mc_version=1.12.2
forge_version=14.23.5.2768
mappings_version=stable_39
srg_notch_map=1.13.2.srg
-44420
View File
File diff suppressed because it is too large. Load diff
-7
View File
@@ -1,7 +0,0 @@
minecraft_version=1.13
minecraft_full_versions=1.13
#forge gradle needs forge version
forge_mc_version=1.12.2
forge_version=14.23.3.2655
mappings_version=snapshot_20180505
srg_notch_map=1.13.srg
+87
View File
@@ -0,0 +1,87 @@
/**
* Gradle Script for COS
* It can be used to upload or download file from Tencent Cloud COS.
* COS: https://cloud.tencent.com/document/product/436
*/
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.qcloud:cos_api:5.4.6'
}
}
import com.qcloud.cos.COSClient
import com.qcloud.cos.ClientConfig
import com.qcloud.cos.auth.BasicCOSCredentials
import com.qcloud.cos.auth.COSCredentials
import com.qcloud.cos.model.PutObjectRequest
import com.qcloud.cos.model.GetObjectRequest
import com.qcloud.cos.region.Region
String getMcVersion(String filename) {
if (filename.endsWith(".json"))
return filename.substring(0, filename.indexOf('-'))
return filename.substring(filename.indexOf('_') + 1, filename.indexOf('-'))
}
String getKey(String filename) {
String name = filename.substring(0, filename.lastIndexOf('.'))
if (filename.endsWith(".json"))
return String.format(
"versions/%s/%s",
name,
filename
)
if (filename.endsWith(".jar"))
return String.format(
"libraries/customskinloader/%s/%s/%s",
name.substring(0, name.indexOf('-')),
name.substring(name.indexOf('-') + 1),
filename
)
return filename
}
ext.bucketName = System.getenv("COS_BUCKET")
ext.cosUrl = "https://csl.littleservice.cn/"
ext.cosClient0 = null
COSClient getCosClient() {
if (cosClient0 != null) return cosClient0
COSCredentials cred = new BasicCOSCredentials(System.getenv("COS_SECRET_ID"), System.getenv("COS_SECRET_KEY"))
ClientConfig clientConfig = new ClientConfig(new Region("ap-shanghai"))
cosClient0 = new COSClient(cred, clientConfig)
}
void uploadFile(String key, File file) {
PutObjectRequest putObjectRequest = new PutObjectRequest(bucketName, key, file)
getCosClient().putObject(putObjectRequest)
}
void downloadFile(String key, File file) {
GetObjectRequest getObjectRequest = new GetObjectRequest(bucketName, key)
getCosClient().getObject(getObjectRequest, file)
}
void uploadArtifacts(String shortVersion) {
String cslversion = shortVersion.replace(".", "")
File dir = rootProject.file("build/libs")
if (!dir.isDirectory()) return
File[] files = dir.listFiles()
for (file in files) {
String key = getKey(file.getName())
uploadFile(key, file)
String url = cosUrl + key
String mcversion = getMcVersion(file.getName()).replace(".", "").toLowerCase()
println(String.format("csl-%s-%s\t%s", mcversion, cslversion, url))
}
}
ext {
uploadArtifacts = this.&uploadArtifacts
}
+62
View File
@@ -0,0 +1,62 @@
/**
* Gradle Script for Remap
* Designed for remapping jar.
* Remap Jar: mcp<->srg<->notch
*/
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
import net.md_5.specialsource.JarMapping
import net.md_5.specialsource.JarRemapper
import net.md_5.specialsource.provider.JarProvider
import net.md_5.specialsource.provider.JointProvider
void reobfSrgToNotch() {
def srgName = "${archivesBaseName}-${version}-srg.jar"
def notchName = srgName.replace('-srg', '')
if (config.srg_notch_map == null) {
//Default Map
def mcpName = srgName.replace('-srg', '-dev')
applySpecialSource(srgName, mcpName, getDefaultMap("srg-mcp"))
applySpecialSource(mcpName, notchName, getDefaultMap("mcp-notch"))
} else {
//Custom Map
applySpecialSource(srgName, notchName, config.srg_notch_map)
}
}
void applySpecialSource(String inputName, String outputName, String mapFile) {
def mapping = new JarMapping()
def srgFile = file(mapFile)
def inputFile = file("build/libs/${inputName}")
def outputFile = file("build/libs/${outputName}")
def remapper = new JarRemapper(null, mapping)
def inputJar = net.md_5.specialsource.Jar.init(inputFile)
def inheritanceProviders = new JointProvider()
def jarProvider = new JarProvider(inputJar)
inheritanceProviders.add(jarProvider)
mapping.loadMappings(srgFile)
mapping.setFallbackInheritanceProvider(inheritanceProviders)
remapper.remapJar(inputJar, outputFile)
}
String getDefaultMap(String srgType) {
def mcpVersion = minecraft.mappings.replace('_', "/")
return System.getProperty('user.home') + "/.gradle/caches/minecraft/de/oceanlabs/mcp/mcp_${mcpVersion}/${config.forge_mc_version}/srgs/${srgType}.srg"
}
ext {
reobfSrgToNotch = this.&reobfSrgToNotch
}
+35
View File
@@ -0,0 +1,35 @@
/**
* Gradle Script for Version
* Format Version String
*/
boolean isRelease() {
String s = rootProject.ext.config.snapshot
return s == null || s == "" || s == "0"
}
boolean isSnapshot() {
return !isRelease()
}
String getBuildNum() {
if (System.getenv("CIRCLE_BUILD_NUM") != null)
return System.getenv("CIRCLE_BUILD_NUM")
return "00"
}
//Example: 14.10a-SNAPSHOT-33
String getCSLVersion() {
return rootProject.ext.config.version + rootProject.ext.config.dev_version +
(isRelease() ? '' : ('-SNAPSHOT-' + getBuildNum()))
}
//Example: 14.10a-s33
String getShortVersion() {
return getCSLVersion().replace("SNAPSHOT-", "s")
}
ext {
getCSLVersion = this.&getCSLVersion
getShortVersion = this.&getShortVersion
}
+24
View File
@@ -0,0 +1,24 @@
{
"id": "${mcVersion}-CSL-${modShortFullVersion}",
"inheritsFrom": "${mcVersion}",
"jar": "${mcVersion}",
"releaseTime": "2013-01-02T21:10:00+08:00",
"time": "2013-01-02T21:10:00+08:00",
"type": "release",
"arguments": {
"game": [
"--tweakClass",
"customskinloader.tweaker.Tweaker"
]
},
"mainClass": "net.minecraft.launchwrapper.Launch",
"libraries": [
{
"name": "customskinloader:CustomSkinLoader_${mcVersion}:${modFullVersion}",
"url": "https://csl.littleservice.cn/libraries/"
},
{
"name": "net.minecraft:launchwrapper:1.12"
}
]
}
@@ -123,6 +123,8 @@ public class CustomSkinLoader {
} }
if(!profile0.isEmpty()){ if(!profile0.isEmpty()){
logger.info(username+"'s profile loaded."); logger.info(username+"'s profile loaded.");
if(!config.enableCape)
profile0.capeUrl = null;
profileCache.updateCache(credential, profile0); profileCache.updateCache(credential, profile0);
profileCache.setLoading(credential, false); profileCache.setLoading(credential, false);
logger.info(profile0.toString(profileCache.getExpiry(credential))); logger.info(profile0.toString(profileCache.getExpiry(credential)));
@@ -46,6 +46,8 @@ public class Logger {
writer = new BufferedWriter(new OutputStreamWriter( writer = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(logFile), "UTF-8")); new FileOutputStream(logFile), "UTF-8"));
System.out.println("Log Path: " + logFile.getAbsolutePath());
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
@@ -79,6 +81,9 @@ public class Logger {
public void debug(String msg){ public void debug(String msg){
log(Level.DEBUG,msg); log(Level.DEBUG,msg);
} }
public void debug(String format, Object... objs) {
debug(String.format(format, objs));
}
public void info(String msg){ public void info(String msg){
log(Level.INFO,msg); log(Level.INFO,msg);
} }
@@ -1,10 +1,12 @@
package customskinloader.config; package customskinloader.config;
import java.io.File; import java.io.File;
import java.lang.reflect.Field;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import customskinloader.utils.Version;
import org.apache.commons.io.FileUtils; import org.apache.commons.io.FileUtils;
import customskinloader.CustomSkinLoader; import customskinloader.CustomSkinLoader;
@@ -18,29 +20,29 @@ public class Config {
//Program //Program
public String version; public String version;
public List<SkinSiteProfile> loadlist; public List<SkinSiteProfile> loadlist;
//Function //Function
public boolean enableDynamicSkull=true; public boolean enableDynamicSkull=true;
public boolean enableTransparentSkin=true; public boolean enableTransparentSkin=true;
public boolean ignoreHttpsCertificate=false; public boolean ignoreHttpsCertificate=false;
public boolean forceLoadAllTextures=false; public boolean forceLoadAllTextures=false;
public boolean enableCape = true;
//Cache //Cache
public int cacheExpiry=30; public int cacheExpiry=30;
public boolean enableUpdateSkull=false; public boolean enableUpdateSkull=false;
public boolean enableLocalProfileCache=false; public boolean enableLocalProfileCache=false;
public boolean enableCacheAutoClean=false; public boolean enableCacheAutoClean=false;
//Init config //Init config
public Config(SkinSiteProfile[] loadlist){ public Config(SkinSiteProfile[] loadlist){
this.version=CustomSkinLoader.CustomSkinLoader_VERSION; this.version=CustomSkinLoader.CustomSkinLoader_VERSION;
this.loadlist=Arrays.asList(loadlist); this.loadlist=Arrays.asList(loadlist);
} }
public static Config loadConfig0() { public static Config loadConfig0() {
Config config=loadConfig(); Config config=loadConfig();
//LoadList null checker //LoadList null checker
if(config.loadlist==null){ if(config.loadlist==null){
config.loadlist=new ArrayList<SkinSiteProfile>(); config.loadlist=new ArrayList<SkinSiteProfile>();
@@ -50,7 +52,7 @@ public class Config {
config.loadlist.remove(i--); config.loadlist.remove(i--);
} }
} }
//Init program //Init program
config.loadExtraList(); config.loadExtraList();
config.initLocalFolder(); config.initLocalFolder();
@@ -65,34 +67,29 @@ public class Config {
CustomSkinLoader.logger.warning("Exception occurs while cleaning cache: "+e.toString()); CustomSkinLoader.logger.warning("Exception occurs while cleaning cache: "+e.toString());
} }
} }
//Output config
CustomSkinLoader.logger.info("EnableDynamicSkull:"+config.enableDynamicSkull+
", EnableTranSkin:"+config.enableTransparentSkin+
", IgnoreHttpsCertificate:"+config.ignoreHttpsCertificate+
", CacheExpiry:"+config.cacheExpiry+
", EnableUpdateSkull:"+config.enableUpdateSkull+
", EnableLocalProfileCache:"+config.enableLocalProfileCache+
", EnableCacheAutoClean:"+config.enableCacheAutoClean+
", LoadList:"+(config.loadlist==null?0:config.loadlist.size()));
//Check config version //Check config version
float floatVersion=0f; Version configVersion = Version.of(config.version);
float configVersion=0f; if (configVersion.compareTo(CustomSkinLoader.CustomSkinLoader_VERSION) < 0) {
try{ CustomSkinLoader.logger.info("Config File is out of date: " + config.version);
floatVersion=Float.parseFloat(CustomSkinLoader.CustomSkinLoader_VERSION); config.version = CustomSkinLoader.CustomSkinLoader_VERSION;
configVersion=Float.parseFloat(config.version);
if(configVersion==15.1f)//To avoid some bug //Update some config
configVersion=14.6f; if (configVersion.compareTo("14.10") < 0)//Lower than 14.10
}catch (Exception e){ config.enableCape = true;
CustomSkinLoader.logger.warning("Exception occurs while parsing version: "+e.toString()); writeConfig(config, true);
} }
if(config.version==null || configVersion==0f || floatVersion > configVersion){
CustomSkinLoader.logger.info("Config File is out of date: "+config.version); //Output config
config.version=CustomSkinLoader.CustomSkinLoader_VERSION; for (Field field : config.getClass().getDeclaredFields()) {
writeConfig(config,true); try {
Object value = field.get(config);
if (value instanceof String || value instanceof Integer || value instanceof Boolean)
CustomSkinLoader.logger.info(field.getName() + " : " + value);
} catch (Exception ignored) { }
} }
CustomSkinLoader.logger.info("loadList : " + (config.loadlist == null ? 0 : config.loadlist.size()));
return config; return config;
} }
@@ -117,7 +114,7 @@ public class Config {
return initConfig(); return initConfig();
} }
} }
private void loadExtraList(){ private void loadExtraList(){
File listAddition=new File(CustomSkinLoader.DATA_DIR,"ExtraList"); File listAddition=new File(CustomSkinLoader.DATA_DIR,"ExtraList");
if(!listAddition.isDirectory()){ if(!listAddition.isDirectory()){
@@ -165,7 +162,7 @@ public class Config {
writeConfig(this,true); writeConfig(this,true);
} }
} }
private void initLocalFolder(){ private void initLocalFolder(){
for(SkinSiteProfile ssp:this.loadlist){ for(SkinSiteProfile ssp:this.loadlist){
ProfileLoader.IProfileLoader loader=ProfileLoader.LOADERS.get(ssp.type.toLowerCase()); ProfileLoader.IProfileLoader loader=ProfileLoader.LOADERS.get(ssp.type.toLowerCase());
@@ -1,14 +1,11 @@
package customskinloader.config; package customskinloader.config;
import customskinloader.loader.jsonapi.CustomSkinAPIPlus.CustomSkinAPIPlusPrivacy;
public class SkinSiteProfile { public class SkinSiteProfile {
public String name; public String name;
public String type; public String type;
public String userAgent; public String userAgent;
public String root; public String root;
public CustomSkinAPIPlusPrivacy privacy;
public Boolean checkPNG;//Not suitable for local skin public Boolean checkPNG;//Not suitable for local skin
public String skin; public String skin;
@@ -34,7 +31,6 @@ public class SkinSiteProfile {
ssp.name=name; ssp.name=name;
ssp.type="CustomSkinAPIPlus"; ssp.type="CustomSkinAPIPlus";
ssp.root=root; ssp.root=root;
ssp.privacy=new CustomSkinAPIPlusPrivacy();
return ssp; return ssp;
} }
public static SkinSiteProfile createUniSkinAPI(String name,String root){ public static SkinSiteProfile createUniSkinAPI(String name,String root){
@@ -50,7 +46,7 @@ public class SkinSiteProfile {
ssp.type="Legacy"; ssp.type="Legacy";
ssp.checkPNG=false; ssp.checkPNG=false;
ssp.skin=skin; ssp.skin=skin;
ssp.model="default"; ssp.model="auto";
ssp.cape=cape; ssp.cape=cape;
ssp.elytra=elytra; ssp.elytra=elytra;
return ssp; return ssp;
@@ -17,7 +17,6 @@ import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.client.resources.DefaultPlayerSkin; import net.minecraft.client.resources.DefaultPlayerSkin;
import net.minecraft.client.resources.SkinManager; import net.minecraft.client.resources.SkinManager;
import net.minecraft.client.resources.SkinManager.SkinAvailableCallback; import net.minecraft.client.resources.SkinManager.SkinAvailableCallback;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StringUtils; import net.minecraft.util.StringUtils;
@@ -31,7 +30,7 @@ public class FakeClientPlayer {
if (ito == null || !(ito instanceof ThreadDownloadImageData)) { if (ito == null || !(ito instanceof ThreadDownloadImageData)) {
//if Legacy Skin for username not loaded yet //if Legacy Skin for username not loaded yet
SkinManager skinman = Minecraft.getMinecraft().getSkinManager(); SkinManager skinman = Minecraft.getMinecraft().getSkinManager();
UUID offlineUUID = EntityPlayer.getOfflineUUID(username); UUID offlineUUID = getOfflineUUID(username);
GameProfile offlineProfile = new GameProfile(offlineUUID, username); GameProfile offlineProfile = new GameProfile(offlineUUID, username);
//Load Default Skin //Load Default Skin
@@ -53,6 +52,10 @@ public class FakeClientPlayer {
//CustomSkinLoader.logger.debug("FakeClientPlayer/getLocationSkin "+username); //CustomSkinLoader.logger.debug("FakeClientPlayer/getLocationSkin "+username);
return new ResourceLocation("skins/legacy-" + StringUtils.stripControlCodes(username)); return new ResourceLocation("skins/legacy-" + StringUtils.stripControlCodes(username));
} }
public static UUID getOfflineUUID(String username)
{
return UUID.nameUUIDFromBytes(("OfflinePlayer:" + username).getBytes());
}
public static Map<ResourceLocation, ITextureObject> textureCache = Maps.newHashMap(); public static Map<ResourceLocation, ITextureObject> textureCache = Maps.newHashMap();
@@ -82,6 +85,5 @@ public class FakeClientPlayer {
CustomSkinLoader.logger.debug("Legacy Texture (" + resourceLocationIn + ") Loaded as " + CustomSkinLoader.logger.debug("Legacy Texture (" + resourceLocationIn + ") Loaded as " +
ito.toString() + " (" + location + ")"); ito.toString() + " (" + location + ")");
} }
} }
} }
@@ -49,15 +49,15 @@ public class FakeSkinBuffer implements net.minecraft.client.renderer.IImageBuffe
image.fillArea(0 * ratio, 32 * ratio, 64 * ratio, 32 * ratio); image.fillArea(0 * ratio, 32 * ratio, 64 * ratio, 32 * ratio);
//Right Leg -> Left Leg //Right Leg -> Left Leg
image.copyArea( 4 * ratio, 16 * ratio, 16 * ratio, 32 * ratio, 4 * ratio, 4 * ratio, true, false);//Top image.copyArea( 4 * ratio, 16 * ratio, 16 * ratio, 32 * ratio, 4 * ratio, 4 * ratio, true, false);//Top
image.copyArea( 8 * ratio, 16 * ratio, 16 * ratio, 32 * ratio, 4 * ratio, 4 * ratio, true, false);//Bottom image.copyArea( 8 * ratio, 16 * ratio, 16 * ratio, 32 * ratio, 4 * ratio, 4 * ratio, true, false);//Bottom
image.copyArea( 0 * ratio, 20 * ratio, 24 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Right image.copyArea( 0 * ratio, 20 * ratio, 24 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Right
image.copyArea( 4 * ratio, 20 * ratio, 16 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Front image.copyArea( 4 * ratio, 20 * ratio, 16 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Front
image.copyArea( 8 * ratio, 20 * ratio, 8 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Left image.copyArea( 8 * ratio, 20 * ratio, 8 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Left
image.copyArea(12 * ratio, 20 * ratio, 16 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Back image.copyArea(12 * ratio, 20 * ratio, 16 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Back
//Right Arm -> Left Arm //Right Arm -> Left Arm
image.copyArea(44 * ratio, 16 * ratio, -8 * ratio, 32 * ratio, 4 * ratio, 4 * ratio, true, false);//Top image.copyArea(44 * ratio, 16 * ratio, -8 * ratio, 32 * ratio, 4 * ratio, 4 * ratio, true, false);//Top
image.copyArea(48 * ratio, 16 * ratio, -8 * ratio, 32 * ratio, 4 * ratio, 4 * ratio, true, false);//Bottom image.copyArea(48 * ratio, 16 * ratio, -8 * ratio, 32 * ratio, 4 * ratio, 4 * ratio, true, false);//Bottom
image.copyArea(40 * ratio, 20 * ratio, 0 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Right image.copyArea(40 * ratio, 20 * ratio, 0 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Right
image.copyArea(44 * ratio, 20 * ratio, -8 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Front image.copyArea(44 * ratio, 20 * ratio, -8 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Front
image.copyArea(48 * ratio, 20 * ratio,-16 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Left image.copyArea(48 * ratio, 20 * ratio,-16 * ratio, 32 * ratio, 4 * ratio, 12 * ratio, true, false);//Left
@@ -42,9 +42,7 @@ public class CustomSkinAPIPlus implements IJsonAPI {
@Override @Override
public String getPayload(SkinSiteProfile ssp) { public String getPayload(SkinSiteProfile ssp) {
if(ssp.privacy==null) return new Gson().toJson(new CustomSkinAPIPlusPayload());
ssp.privacy=new CustomSkinAPIPlusPrivacy();
return new Gson().toJson(new CustomSkinAPIPlusPayload(ssp.privacy));
} }
@Override @Override
@@ -58,25 +56,15 @@ public class CustomSkinAPIPlus implements IJsonAPI {
} }
public static class CustomSkinAPIPlusPayload{ public static class CustomSkinAPIPlusPayload{
public String gameVersion;//minecraft version String gameVersion;//minecraft version
public String modVersion;//mod version String modVersion;//mod version
public String serverAddress;//ip:port String serverAddress;//ip:port
public String clientID;//Minecraft Client ID String clientID;//Minecraft Client ID
public CustomSkinAPIPlusPayload(CustomSkinAPIPlusPrivacy privacy){ CustomSkinAPIPlusPayload(){
if(privacy.gameVersion) gameVersion = MinecraftUtil.getMinecraftMainVersion();
gameVersion=MinecraftUtil.getMinecraftMainVersion(); modVersion = CustomSkinLoader.CustomSkinLoader_VERSION;
if(privacy.modVersion) serverAddress = MinecraftUtil.isLanServer() ? null : MinecraftUtil.getStandardServerAddress();
modVersion=CustomSkinLoader.CustomSkinLoader_VERSION; clientID = CustomSkinAPIPlus.clientID;
if(privacy.serverAddress)
serverAddress=MinecraftUtil.isLanServer()?null:MinecraftUtil.getStandardServerAddress();
if(privacy.clientID)
clientID=CustomSkinAPIPlus.clientID;
} }
} }
public static class CustomSkinAPIPlusPrivacy{
public boolean gameVersion=true;
public boolean modVersion=true;
public boolean serverAddress=true;
public boolean clientID=true;
}
} }
@@ -74,6 +74,10 @@ public class HttpRequestUtil {
public static final File CACHE_DIR=new File(CustomSkinLoader.DATA_DIR,"caches"); public static final File CACHE_DIR=new File(CustomSkinLoader.DATA_DIR,"caches");
public static HttpResponce makeHttpRequest(HttpRequest request){ public static HttpResponce makeHttpRequest(HttpRequest request){
return makeHttpRequest(request, 0);
}
public static HttpResponce makeHttpRequest(HttpRequest request, int redirectTime){
try{ try{
CustomSkinLoader.logger.debug("Try to request '"+request.url+(request.userAgent==null?"'.":"' with user agent '"+request.userAgent+"'.")); CustomSkinLoader.logger.debug("Try to request '"+request.url+(request.userAgent==null?"'.":"' with user agent '"+request.userAgent+"'."));
//Check Cache //Check Cache
@@ -129,15 +133,31 @@ public class HttpRequestUtil {
//Check Connection //Check Connection
HttpResponce responce=new HttpResponce(); HttpResponce responce=new HttpResponce();
responce.responceCode=c.getResponseCode(); responce.responceCode=c.getResponseCode();
int res=c.getResponseCode()/100; int res = c.getResponseCode();
if(res==4||res==5){//Failed if (res / 100 == 4 || res / 100 == 5) {//Failed
CustomSkinLoader.logger.debug("Failed to request (Response Code: "+c.getResponseCode()+")"); CustomSkinLoader.logger.debug("Failed to request (Response Code: " + res + ")");
return responce; return responce;
} }
if (res == HttpURLConnection.HTTP_MOVED_PERM || res == HttpURLConnection.HTTP_MOVED_TEMP) {
//Redirect
if (redirectTime >= 4) {
CustomSkinLoader.logger.debug("Failed to request (Too many redirection)");
return responce;
}
request.url = c.getHeaderField("Location");//Get redirecting location
if (request.url == null) {
CustomSkinLoader.logger.debug("Failed to request (Redirecting location not found)");
return responce;
}
CustomSkinLoader.logger.debug("Redirect to: " + request.url);
return makeHttpRequest(request, redirectTime + 1);//Recursion
}
responce.success=true; responce.success=true;
CustomSkinLoader.logger.debug("Successfully request (Response Code: "+c.getResponseCode()+" , Content Length: "+c.getContentLength()+")"); CustomSkinLoader.logger.debug("Successfully request (Response Code: " + res + " , Content Length: " + c.getContentLength() + ")");
if(responce.responceCode==HttpURLConnection.HTTP_NOT_MODIFIED) if(responce.responceCode==HttpURLConnection.HTTP_NOT_MODIFIED)
return loadFromCache(request,responce); return loadFromCache(request,responce);
if (responce.responceCode == HttpURLConnection.HTTP_NO_CONTENT)
request.cacheTime = 3600;
//Load Content //Load Content
InputStream is="gzip".equals(c.getContentEncoding())?new GZIPInputStream(c.getInputStream()):c.getInputStream(); InputStream is="gzip".equals(c.getContentEncoding())?new GZIPInputStream(c.getInputStream()):c.getInputStream();
@@ -1,15 +1,12 @@
package customskinloader.utils; package customskinloader.utils;
import java.io.IOException;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException; import java.net.UnknownHostException;
import java.security.cert.X509Certificate; import java.security.cert.X509Certificate;
import javax.net.ssl.HostnameVerifier; import javax.net.ssl.*;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSession;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@@ -37,7 +34,8 @@ public class HttpUtil0 {
try { try {
SSLContext sc = SSLContext.getInstance("TLS"); SSLContext sc = SSLContext.getInstance("TLS");
sc.init(null, trustAllCerts, new java.security.SecureRandom()); sc.init(null, trustAllCerts, new java.security.SecureRandom());
HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory()); //HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
HttpsURLConnection.setDefaultSSLSocketFactory(new SSLSocketFactoryFacade());
HttpsURLConnection.setDefaultHostnameVerifier(doNotVerify); HttpsURLConnection.setDefaultHostnameVerifier(doNotVerify);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
@@ -76,4 +74,49 @@ public class HttpUtil0 {
num+=Integer.parseInt(ips[i])*(256^(3-i)); num+=Integer.parseInt(ips[i])*(256^(3-i));
return num; return num;
} }
//https://stackoverflow.com/questions/30817934/extended-server-name-sni-extension-not-sent-with-jdk1-8-0-but-send-with-jdk1-7
public static class SSLSocketFactoryFacade extends SSLSocketFactory {
SSLSocketFactory sslsf;
public SSLSocketFactoryFacade() {
sslsf = (SSLSocketFactory) SSLSocketFactory.getDefault();;
}
@Override
public String[] getDefaultCipherSuites() {
return sslsf.getDefaultCipherSuites();
}
@Override
public String[] getSupportedCipherSuites() {
return sslsf.getSupportedCipherSuites();
}
@Override
public Socket createSocket(Socket socket, String s, int i, boolean b) throws IOException {
return sslsf.createSocket(socket, s, i, b);
}
@Override
public Socket createSocket(String s, int i) throws IOException, UnknownHostException {
return sslsf.createSocket(s, i);
}
@Override
public Socket createSocket(String s, int i, InetAddress inetAddress, int i1) throws IOException, UnknownHostException {
return sslsf.createSocket(s, i, inetAddress, i1);
}
@Override
public Socket createSocket(InetAddress inetAddress, int i) throws IOException {
return createSocket(inetAddress, i);
}
@Override
public Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress1, int i1) throws IOException {
return createSocket(inetAddress, i, inetAddress1, i1);
}
}
} }
@@ -12,6 +12,7 @@ import org.apache.commons.lang3.StringUtils;
import com.mojang.authlib.GameProfile; import com.mojang.authlib.GameProfile;
import com.mojang.authlib.minecraft.MinecraftSessionService; import com.mojang.authlib.minecraft.MinecraftSessionService;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.texture.TextureManager; import net.minecraft.client.renderer.texture.TextureManager;
/** /**
@@ -21,13 +22,13 @@ import net.minecraft.client.renderer.texture.TextureManager;
*/ */
public class MinecraftUtil { public class MinecraftUtil {
public static File getMinecraftDataDir(){ public static File getMinecraftDataDir(){
return net.minecraft.client.Minecraft.getMinecraft().mcDataDir; return Minecraft.getMinecraft().gameDir;
} }
public static MinecraftSessionService getSessionService(){ public static MinecraftSessionService getSessionService(){
return net.minecraft.client.Minecraft.getMinecraft().getSessionService(); return Minecraft.getMinecraft().getSessionService();
} }
public static TextureManager getTextureManager(){ public static TextureManager getTextureManager(){
return net.minecraft.client.Minecraft.getMinecraft().getTextureManager(); return Minecraft.getMinecraft().getTextureManager();
} }
private static ArrayList<String> minecraftVersion=new ArrayList<String>(); private static ArrayList<String> minecraftVersion=new ArrayList<String>();
@@ -65,7 +66,7 @@ public class MinecraftUtil {
// (domain|ip)(:port) // (domain|ip)(:port)
public static String getServerAddress(){ public static String getServerAddress(){
net.minecraft.client.multiplayer.ServerData data=net.minecraft.client.Minecraft.getMinecraft().getCurrentServerData(); net.minecraft.client.multiplayer.ServerData data = Minecraft.getMinecraft().getCurrentServerData();
if(data==null)//Single Player if(data==null)//Single Player
return null; return null;
return data.serverIP; return data.serverIP;
@@ -78,7 +79,7 @@ public class MinecraftUtil {
return HttpUtil0.isLanServer(getStandardServerAddress()); return HttpUtil0.isLanServer(getStandardServerAddress());
} }
public static String getCurrentUsername(){ public static String getCurrentUsername(){
return net.minecraft.client.Minecraft.getMinecraft().getSession().getProfile().getName(); return Minecraft.getMinecraft().getSession().getProfile().getName();
} }
private final static Pattern MINECRAFT_CORE_FILE_PATTERN = Pattern.compile("^(.*?)/versions/([^\\/\\\\]*?)/([^\\/\\\\]*?).jar$"); private final static Pattern MINECRAFT_CORE_FILE_PATTERN = Pattern.compile("^(.*?)/versions/([^\\/\\\\]*?)/([^\\/\\\\]*?).jar$");
@@ -98,23 +99,19 @@ public class MinecraftUtil {
} }
} }
public static boolean isCoreFile(URL url){ public static boolean isCoreFile(URL url) {
Matcher m; return regexMatch(url, MINECRAFT_CORE_FILE_PATTERN);
try{
m=MINECRAFT_CORE_FILE_PATTERN.matcher(URLDecoder.decode(url.getPath(),"UTF-8"));
}catch(Exception e){
e.printStackTrace();
return false;
}
return m.matches();
} }
private final static Pattern LIBRARY_FILE_PATTERN = Pattern.compile("^(.*?)/libraries/(.*?)/([^\\/\\\\]*?).jar$"); private final static Pattern LIBRARY_FILE_PATTERN = Pattern.compile("^(.*?)/libraries/(.*?)/([^\\/\\\\]*?).jar$");
public static boolean isLibraryFile(URL url){ public static boolean isLibraryFile(URL url) {
return regexMatch(url, LIBRARY_FILE_PATTERN);
}
private static boolean regexMatch(URL url, Pattern p) {
Matcher m; Matcher m;
try{ try {
m=LIBRARY_FILE_PATTERN.matcher(URLDecoder.decode(url.getPath(),"UTF-8")); m=p.matcher(URLDecoder.decode(url.getPath(), "UTF-8"));
}catch(Exception e){ } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
return false; return false;
} }
@@ -0,0 +1,50 @@
package customskinloader.utils;
import org.apache.commons.lang3.StringUtils;
public class Version implements Comparable {
private String version;
private int sub[];
public Version(String version) {
if (version == null) version = "";
this.version = version;
//Parse Subversion
String[] split = version.split("\\.");
sub = new int[split.length];
for (int i = 0; i < split.length; i++) {
if (StringUtils.isNumeric(split[i]))
sub[i] = Integer.parseInt(split[i]);
}
}
public static Version of(String version) {
return new Version(version);
}
public static int compare(String version, String anotherVersion) {
return Version.of(version).compareTo(anotherVersion);
}
@Override
public String toString() {
return version;
}
@Override
public int compareTo(Object o) {
if (o instanceof String) o = Version.of((String) o);//Parse String version
if (!(o instanceof Version)) throw new IllegalArgumentException(String.format("'%s' is not a Version.", o));
Version v = (Version) o;
int i = 0;
//Skip same subversion
while (i < sub.length && i < v.sub.length && sub[i] == v.sub[i]) i++;
//Compare first non-equal number
if (i < sub.length && i < v.sub.length)
return (sub[i] < v.sub[i]) ? -1 : ((sub[i] == v.sub[i]) ? 0 : 1); //Integer.compare(sub[i], v.sub[i]);
//Compare length if all subversion is same
return Integer.signum(sub.length - v.sub.length);
}
}
+1
View File
@@ -1,2 +1,3 @@
/bin/ /bin/
/build/ /build/
/run/
Binary file not shown.
+34 -7
View File
@@ -14,14 +14,14 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle.forge' apply plugin: 'net.minecraftforge.gradle.forge'
ext.MINECRAFT_VERSION = "1.12.2" ext.MINECRAFT_VERSION = "1.12.2"
ext.FORGE_VERSION = "14.23.3.2655" ext.FORGE_VERSION = "14.23.5.2768"
ext.MAPPING_VERSION = "snapshot_20180505" ext.MAPPING_VERSION = "stable_39"
ext.MINECRAFT_FULL_VERSIONS = "1.8,1.8.8,1.8.9,1.9,1.9.4,1.10,1.10.2,1.11,1.11.2,1.12,1.12.1,1.12.2" ext.MINECRAFT_FULL_VERSIONS = "1.8,1.8.8,1.8.9,1.9,1.9.4,1.10,1.10.2,1.11,1.11.2,1.12,1.12.1,1.12.2"
ext.snapshot = !(rootProject.ext.config.snapshot == "" || rootProject.ext.config.snapshot == "0" || rootProject.ext.config.snapshot == 0) apply from: rootProject.file("BuildScripts/version.gradle")
archivesBaseName = "CustomSkinLoader_Forge" archivesBaseName = "CustomSkinLoader_Forge"
version = rootProject.ext.config.version + rootProject.ext.config.dev_version + (snapshot ? "-SNAPSHOT-" + System.getenv("CIRCLE_BUILD_NUM") : "") version = getCSLVersion()
group = "customskinloader" group = "customskinloader"
sourceCompatibility = targetCompatibility = 1.6 sourceCompatibility = targetCompatibility = 1.6
@@ -30,10 +30,20 @@ compileJava {
} }
jar { jar {
manifest { manifest {
attributes 'FMLCorePlugin': 'customskinloader.forge.ForgePlugin' attributes([
attributes 'FMLCorePluginContainsFMLMod': true "FMLCorePlugin" : "customskinloader.forge.ForgePlugin",
"FMLCorePluginContainsFMLMod": true,
"Specification-Title" : "CustomSkinLoader",
"Specification-Vendor" : "xfl03",
"Specification-Version" : "1",
"Implementation-Title" : "CustomSkinLoader",
"Implementation-Version" : "${version}",
"Implementation-Vendor" : "xfl03",
"Implementation-Timestamp" : new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
} }
exclude 'net/minecraft/client/renderer/texture/NativeImage.class' exclude 'net/minecraft/client/renderer/texture/NativeImage.class'
exclude 'net/minecraftforge/fml/common/Mod.class'
} }
sourceSets { sourceSets {
main { main {
@@ -46,6 +56,7 @@ sourceSets {
resources { resources {
//Common //Common
srcDir '../Common/resource' srcDir '../Common/resource'
exclude 'Profile.json'
//Forge //Forge
srcDir 'resource' srcDir 'resource'
} }
@@ -56,6 +67,7 @@ minecraft {
version = MINECRAFT_VERSION + "-" + FORGE_VERSION version = MINECRAFT_VERSION + "-" + FORGE_VERSION
runDir = "run" runDir = "run"
mappings = MAPPING_VERSION mappings = MAPPING_VERSION
clientJvmArgs += "-Dfml.coreMods.load=customskinloader.forge.ForgePlugin"
replace '@MOD_VERSION@', rootProject.ext.config.version replace '@MOD_VERSION@', rootProject.ext.config.version
replace '@MOD_FULL_VERSION@', project.version replace '@MOD_FULL_VERSION@', project.version
@@ -64,6 +76,7 @@ minecraft {
} }
processResources { processResources {
filesNotMatching("**/*.js"){
expand([ expand([
modVersion : rootProject.ext.config.version, modVersion : rootProject.ext.config.version,
modFullVersion: project.version, modFullVersion: project.version,
@@ -72,9 +85,23 @@ processResources {
forgeVersion : FORGE_VERSION, forgeVersion : FORGE_VERSION,
gitVersion : System.getenv("CIRCLE_SHA1"), gitVersion : System.getenv("CIRCLE_SHA1"),
buildUrl : System.getenv("CIRCLE_BUILD_URL") buildUrl : System.getenv("CIRCLE_BUILD_URL")
]) ])}
} }
task signJar(type: SignJar, dependsOn: reobfJar) {
onlyIf { System.getenv("KEY_PASS") != null }
doLast { System.out.println("Jar will be signed.") }
inputFile = jar.archivePath
outputFile = jar.archivePath
keyStore = 'CustomSkinLoader.jks'
alias = 'CustomSkinLoader'
storePass = System.getenv("KEY_PASS")
keyPass = System.getenv("KEY_PASS")
}
build.dependsOn signJar
task afterBuild { task afterBuild {
doLast { doLast {
//copyBuildFile //copyBuildFile
+3
View File
@@ -0,0 +1,3 @@
{
"transformers": "transformers.js"
}
+19
View File
@@ -0,0 +1,19 @@
modLoader="javafml"
loaderVersion="[25,)"
issueTrackerURL="https://github.com/xfl03/MCCustomSkinLoader/issues"
displayURL="https://github.com/xfl03/MCCustomSkinLoader"
credits="GPLv3"
authors=["xfl03", "JLChnToZ"]
[[mods]]
modId="customskinloader"
version="${modFullVersion}"
displayName="CustomSkinLoader"
description='''
Custom Skin Loader for Minecraft
'''
[[dependencies.customskinloader]]
modId="forge"
mandatory=true
versionRange="[25,)"
ordering="NONE"
side="CLIENT"
+6
View File
@@ -0,0 +1,6 @@
{
"pack": {
"description": "CustomSkinLoader resources",
"pack_format": 4
}
}
+154
View File
@@ -0,0 +1,154 @@
var AbstractInsnNode = Java.type('org.objectweb.asm.tree.AbstractInsnNode');
var FieldInsnNode = Java.type('org.objectweb.asm.tree.FieldInsnNode');
var FieldNode = Java.type('org.objectweb.asm.tree.FieldNode');
var InsnNode = Java.type('org.objectweb.asm.tree.InsnNode');
var MethodInsnNode = Java.type('org.objectweb.asm.tree.MethodInsnNode');
var TypeInsnNode = Java.type('org.objectweb.asm.tree.TypeInsnNode');
var VarInsnNode = Java.type('org.objectweb.asm.tree.VarInsnNode');
var Opcodes = Java.type('org.objectweb.asm.Opcodes');
function SkinManagerTransformer() {
return {
'InitTransformer': function (cn, mn) {
cn.fields.add(new FieldNode(Opcodes.ACC_PRIVATE, "fakeManager", "Lcustomskinloader/fake/FakeSkinManager;", null, null));
mn.instructions.clear();
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 0));
mn.instructions.add(new MethodInsnNode(Opcodes.INVOKESPECIAL, "java/lang/Object", "<init>", "()V", false));
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 0));
mn.instructions.add(new TypeInsnNode(Opcodes.NEW, "customskinloader/fake/FakeSkinManager"));
mn.instructions.add(new InsnNode(Opcodes.DUP));
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 1));
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 2));
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 3));
mn.instructions.add(new MethodInsnNode(Opcodes.INVOKESPECIAL, "customskinloader/fake/FakeSkinManager", "<init>",
"(Lnet/minecraft/client/renderer/texture/TextureManager;Ljava/io/File;Lcom/mojang/authlib/minecraft/MinecraftSessionService;)V", false));
mn.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, "net/minecraft/client/resources/SkinManager", "fakeManager", "Lcustomskinloader/fake/FakeSkinManager;"));
mn.instructions.add(new InsnNode(Opcodes.RETURN));
},
'LoadSkinTransformer': function (cn, mn) {
mn.instructions.clear();
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 0));
mn.instructions.add(new FieldInsnNode(Opcodes.GETFIELD, "net/minecraft/client/resources/SkinManager", "fakeManager", "Lcustomskinloader/fake/FakeSkinManager;"));
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 1));
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 2));
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 3));
mn.instructions.add(new MethodInsnNode(Opcodes.INVOKEVIRTUAL, "customskinloader/fake/FakeSkinManager", "loadSkin",
"(Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Lnet/minecraft/client/resources/SkinManager$SkinAvailableCallback;)Lnet/minecraft/util/ResourceLocation;", false));
mn.instructions.add(new InsnNode(Opcodes.ARETURN));
},
'LoadProfileTexturesTransformer': function (cn, mn) {
mn.instructions.clear();
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 0));
mn.instructions.add(new FieldInsnNode(Opcodes.GETFIELD, "net/minecraft/client/resources/SkinManager", "fakeManager", "Lcustomskinloader/fake/FakeSkinManager;"));
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 1));
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 2));
mn.instructions.add(new VarInsnNode(Opcodes.ILOAD, 3));
mn.instructions.add(new MethodInsnNode(Opcodes.INVOKEVIRTUAL, "customskinloader/fake/FakeSkinManager", "loadProfileTextures",
"(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/client/resources/SkinManager$SkinAvailableCallback;Z)V", false));
mn.instructions.add(new InsnNode(Opcodes.RETURN));
},
'LoadSkinFromCacheTransformer': function (cn, mn) {
mn.instructions.clear();
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 0));
mn.instructions.add(new FieldInsnNode(Opcodes.GETFIELD, "net/minecraft/client/resources/SkinManager", "fakeManager", "Lcustomskinloader/fake/FakeSkinManager;"));
mn.instructions.add(new VarInsnNode(Opcodes.ALOAD, 1));
mn.instructions.add(new MethodInsnNode(Opcodes.INVOKEVIRTUAL, "customskinloader/fake/FakeSkinManager", "loadSkinFromCache",
"(Lcom/mojang/authlib/GameProfile;)Ljava/util/Map;", false));
mn.instructions.add(new InsnNode(Opcodes.ARETURN));
}
};
}
function PlayerTabTransformer(cn, mn) {
var iterator = mn.instructions.iterator();
while (iterator.hasNext()) {
var node = iterator.next();
if (node instanceof VarInsnNode) {
var varNode = node;
if (varNode.getOpcode() === Opcodes.ISTORE && varNode.var === 11) {
mn.instructions.set(varNode.getPrevious(), new InsnNode(Opcodes.ICONST_1));
}
}
}
}
function FakeSkinManagerTransformer(cn, mn) {
var TARGET_CLASS = "net/minecraft/client/renderer/ThreadDownloadImageData";
var NEW_TARGET_CLASS = "net/minecraft/client/renderer/texture/ThreadDownloadImageData";
var CALLBACK_CLASS = "net/minecraft/client/resources/SkinManager$SkinAvailableCallback";
var il = mn.instructions;
var li = il.iterator();
while (li.hasNext()) {
var ain = li.next();
if (ain instanceof MethodInsnNode) {
var min = ain;
if (min.owner.equals(TARGET_CLASS)) {
min.owner = NEW_TARGET_CLASS;
//il.set(min, new MethodInsnNode(min.getOpcode(), NEW_TARGET_CLASS, min.name, min.desc, false));
}
if (min.owner.equals(CALLBACK_CLASS) && min.name.equals("func_180521_a")) {
min.name = "onSkinTextureAvailable";
//il.set(min, new MethodInsnNode(min.getOpcode(), min.owner, "onSkinTextureAvailable", min.desc, false));
}
} else if (ain instanceof TypeInsnNode) {
var tin = ain;
if (tin.desc.equals(TARGET_CLASS)) {
tin.desc = NEW_TARGET_CLASS;
}
}
}
}
function initializeCoreMod() {
return {
'SkinManagerTransformer': {
'target': {
'type': 'CLASS',
'name': 'net/minecraft/client/resources/SkinManager'
},
'transformer': function (cn) {
cn.methods.forEach(function (mn) {
if (mn.name === '<init>')
SkinManagerTransformer()['InitTransformer'](cn, mn);
else if(mn.name === 'func_152789_a')
SkinManagerTransformer()['LoadSkinTransformer'](cn, mn);
else if(mn.name === 'func_152790_a')
SkinManagerTransformer()['LoadProfileTexturesTransformer'](cn, mn);
else if(mn.name === 'func_152788_a')
SkinManagerTransformer()['LoadSkinFromCacheTransformer'](cn, mn);
});
return cn;
}
},
'PlayerTabTransformer': {
'target': {
'type': 'CLASS',
'name': 'net/minecraft/client/gui/GuiPlayerTabOverlay'
},
'transformer': function (cn) {
cn.methods.forEach(function (mn) {
if (mn.name === 'func_175249_a')
PlayerTabTransformer(cn, mn);
});
return cn;
}
},
'FakeSkinManagerTransformer': {
'target': {
'type': 'CLASS',
'name': 'customskinloader/fake/FakeSkinManager'
},
'transformer': function (cn) {
cn.methods.forEach(function (mn) {
//if (mn.name === '<init>')
FakeSkinManagerTransformer(cn, mn);
});
return cn;
}
}
};
}
@@ -2,11 +2,9 @@ package customskinloader.forge;
import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod;
@Mod(modid = "customskinloader", /**
name = "CustomSkinLoader", * Forge Mod Container for 1.13+
version = "@MOD_FULL_VERSION@", */
clientSideOnly=true, @Mod("customskinloader")
acceptedMinecraftVersions="[1.8,)") public class ForgeMod {
public class ForgeMod{ }
}
@@ -0,0 +1,41 @@
package customskinloader.forge;
import customskinloader.CustomSkinLoader;
import net.minecraftforge.fml.common.FMLModContainer;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.discovery.ModCandidate;
import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent;
import java.util.Map;
/**
* Forge Mod Container for 1.13-
*/
@ModOld(
modid = "customskinloader",
name = "CustomSkinLoader",
version = "@MOD_FULL_VERSION@",
clientSideOnly = true,
acceptedMinecraftVersions = "[1.8,)",
certificateFingerprint = "52885f395e68f42e9b3b629ba56ecf606f7d4269"
)//1.13-
public class ForgeModOld {
@EventHandler
public void fingerprintError(FMLFingerprintViolationEvent event) {
if (event.isDirectory()) return;//Development Environment
CustomSkinLoader.logger.warning("!!!Fingerprint ERROR!!!");
CustomSkinLoader.logger.warning("Failed to check fingerprint in file '" + event.getSource().getAbsolutePath() + "'.");
CustomSkinLoader.logger.warning("Excepted Fingerprint: " + event.getExpectedFingerprint());
if (event.getFingerprints().isEmpty()) {
CustomSkinLoader.logger.warning("No Fingerprint Founded.");
} else {
CustomSkinLoader.logger.warning("Founded Fingerprint: ");
for (String s : event.getFingerprints())
CustomSkinLoader.logger.warning(s);
}
throw new RuntimeException("Fingerprint ERROR, please **DO NOT MODIFY** any mod.");
}
}
@@ -2,13 +2,23 @@ package customskinloader.forge;
import java.util.Map; import java.util.Map;
import net.minecraftforge.fml.common.FMLModContainer;
import net.minecraftforge.fml.common.ModContainerFactory;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin; import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin.Name;
import org.objectweb.asm.Type;
@Name("CustomSkinLoader")
public class ForgePlugin implements IFMLLoadingPlugin { public class ForgePlugin implements IFMLLoadingPlugin {
static{
//Transform Annotation in 1.13-
ModContainerFactory.instance().registerContainerType(Type.getType(ModOld.class), FMLModContainer.class);
}
@Override @Override
public String[] getASMTransformerClass() { public String[] getASMTransformerClass() {
return new String[] {TransformerManager.class.getName()}; return new String[]{"customskinloader.forge.loader.LaunchWrapper"};//LaunchWrapper
} }
@Override @Override
@@ -0,0 +1,23 @@
package customskinloader.forge;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
//https://github.com/MinecraftForge/MinecraftForge/blob/1.12.x/src/main/java/net/minecraftforge/fml/common/Mod.java
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ModOld {
String modid();
String name() default "";
String version() default "";
boolean clientSideOnly() default false;
String acceptedMinecraftVersions() default "";
String certificateFingerprint() default "";
}
@@ -1,97 +1,69 @@
package customskinloader.forge; package customskinloader.forge;
import java.io.File;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import java.util.ArrayList; import java.util.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import customskinloader.Logger;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.tree.ClassNode; import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.tree.MethodNode; import org.objectweb.asm.tree.MethodNode;
import net.minecraft.launchwrapper.IClassTransformer; import customskinloader.Logger;
import net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper;
import customskinloader.forge.transformer.PlayerTabTransformer.ScoreObjectiveTransformer; public class TransformerManager {
import customskinloader.forge.transformer.SkinManagerTransformer.*; public static Logger logger = new Logger(new File("./CustomSkinLoader/ForgePlugin.log"));
import customskinloader.forge.transformer.SpectatorMenuTransformer.PlayerMenuObjectTransformer;
public class TransformerManager implements IClassTransformer {
public static Logger logger = new Logger("CustomSkinLoader/ForgePlugin.log");
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface TransformTarget{ public @interface TransformTarget {
String className(); String className();
String[] methodNames(); String[] methodNames();
String desc(); String desc();
} }
public interface IMethodTransformer{
void transform(ClassNode cn,MethodNode mn); public interface IMethodTransformer {
void transform(ClassNode cn, MethodNode mn);
} }
private static final IMethodTransformer[] TRANFORMERS={
new InitTransformer(), public Map<String, Map<String, IMethodTransformer>> map;
new LoadSkinTransformer(),
new LoadProfileTexturesTransformer(), public TransformerManager(IMethodTransformer... transformers) {
new LoadSkinFromCacheTransformer(),
new ScoreObjectiveTransformer(),
new PlayerMenuObjectTransformer()};
private Map<String, Map<String, IMethodTransformer>> map;
public TransformerManager(){
map = new HashMap<String, Map<String, IMethodTransformer>>(); map = new HashMap<String, Map<String, IMethodTransformer>>();
for(IMethodTransformer t:TRANFORMERS){ for (IMethodTransformer t : transformers) {
logger.info("[CSL DEBUG] REGISTERING TRANSFORMER %s" , t.getClass().getName()); logger.info("[CSL DEBUG] REGISTERING TRANSFORMER %s", t.getClass().getName());
if(!t.getClass().isAnnotationPresent(TransformTarget.class)){ if (!t.getClass().isAnnotationPresent(TransformTarget.class)) {
logger.info("[CSL DEBUG] ERROR occurs while parsing Annotation."); logger.info("[CSL DEBUG] ERROR occurs while parsing Annotation.");
continue; continue;
} }
addMethodTransformer(t.getClass().getAnnotation(TransformTarget.class),t); addMethodTransformer(t.getClass().getAnnotation(TransformTarget.class), t);
} }
} }
private void addMethodTransformer(TransformTarget target, IMethodTransformer transformer) { private void addMethodTransformer(TransformTarget target, IMethodTransformer transformer) {
if (!map.containsKey(target.className())) if (!map.containsKey(target.className()))
map.put(target.className(), new HashMap<String, IMethodTransformer>()); map.put(target.className(), new HashMap<String, IMethodTransformer>());
for(String methodName:target.methodNames()){ for (String methodName : target.methodNames()) {
map.get(target.className()).put(methodName + target.desc(), transformer); map.get(target.className()).put(methodName + target.desc(), transformer);
logger.info("[CSL DEBUG] REGISTERING METHOD %s(%s)",target.className(),methodName + target.desc()); logger.info("[CSL DEBUG] REGISTERING METHOD %s(%s)", target.className(), methodName + target.desc());
} }
} }
//From: https://github.com/RecursiveG/UniSkinMod/blob/1.9.4/src/main/java/org/devinprogress/uniskinmod/coremod/BaseAsmTransformer.java#L83-L114
@Override
public byte[] transform(String obfClassName, String className, byte[] bytes) {
if (!map.containsKey(className)) return bytes;
logger.info("[CSL DEBUG] CLASS %s will be transformed", className);
Map<String, IMethodTransformer> transMap = map.get(className);
ClassReader cr = new ClassReader(bytes);
ClassNode cn = new ClassNode();
cr.accept(cn, 0);
// NOTE: `map` = convert obfuscated name to srgName; public MethodNode transform(ClassNode classNode, MethodNode methodNode, String className, String methodName, String methodDesc) {
List<MethodNode> ml = new ArrayList<MethodNode>(cn.methods); Map<String, IMethodTransformer> transMap = map.get(className);
for (MethodNode mn : ml) { String methodTarget = methodName + methodDesc;
String methodName = FMLDeobfuscatingRemapper.INSTANCE.mapMethodName(obfClassName, mn.name, mn.desc); if (transMap.containsKey(methodTarget)) {
String methodDesc = FMLDeobfuscatingRemapper.INSTANCE.mapMethodDesc(mn.desc); try {
if (transMap.containsKey(methodName + methodDesc)) { transMap.get(methodTarget).transform(classNode, methodNode);
try { logger.info("[CSL DEBUG] Successfully transformed method %s in class %s", methodName, className);
logger.info("[CSL DEBUG] Transforming method %s in class %s(%s)", methodName + methodDesc, obfClassName, className); } catch (Exception e) {
transMap.get(methodName + methodDesc).transform(cn,mn); logger.warning("[CSL DEBUG] An error happened when transforming method %s in class %s.", methodTarget, className);
logger.info("[CSL DEBUG] Successfully transformed method %s in class %s(%s)", methodName + methodDesc, obfClassName, className); logger.warning(e);
} catch (Exception e) {
logger.warning("[CSL DEBUG] An error happened when transforming method %s in class %s(%s). The whole class was not modified.", methodName + methodDesc, obfClassName, className);
e.printStackTrace();
return bytes;
}
} }
} }
return methodNode;
ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);
cn.accept(cw);
return cw.toByteArray();
} }
} }
@@ -0,0 +1,49 @@
package customskinloader.forge.loader;
import customskinloader.forge.TransformerManager;
import customskinloader.forge.transformer.PlayerTabTransformer;
import customskinloader.forge.transformer.SkinManagerTransformer;
import customskinloader.forge.transformer.SpectatorMenuTransformer;
import net.minecraft.launchwrapper.IClassTransformer;
import net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.tree.MethodNode;
//LaunchWrapper for 1.13-
public class LaunchWrapper implements IClassTransformer {
private static final TransformerManager.IMethodTransformer[] TRANFORMERS = {
new SkinManagerTransformer.InitTransformer(),
new SkinManagerTransformer.LoadSkinTransformer(),
new SkinManagerTransformer.LoadProfileTexturesTransformer(),
new SkinManagerTransformer.LoadSkinFromCacheTransformer(),
new PlayerTabTransformer.ScoreObjectiveTransformer(),
new SpectatorMenuTransformer.PlayerMenuObjectTransformer()
};
private TransformerManager transformerManager = new TransformerManager(TRANFORMERS);
//From: https://github.com/RecursiveG/UniSkinMod/blob/1.9.4/src/main/java/org/devinprogress/uniskinmod/coremod/BaseAsmTransformer.java#L83-L114
public byte[] transform(String obfClassName, String className, byte[] bytes) {
if (!transformerManager.map.containsKey(className)) return bytes;//Check if should be transformed
//Parse bytes to ClassNode
ClassReader cr = new ClassReader(bytes);
ClassNode cn = new ClassNode();
cr.accept(cn, 0);
//Transform ClassNode
for (MethodNode mn : cn.methods) {
String methodName = FMLDeobfuscatingRemapper.INSTANCE.mapMethodName(obfClassName, mn.name, mn.desc);
String methodDesc = FMLDeobfuscatingRemapper.INSTANCE.mapMethodDesc(mn.desc);
transformerManager.transform(cn, mn, className, methodName, methodDesc);
}
//Parse Class Node to bytes
ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);
cn.accept(cw);
return cw.toByteArray();
}
}
@@ -0,0 +1,49 @@
package customskinloader.forge.loader;
import customskinloader.forge.TransformerManager;
import customskinloader.forge.transformer.FakeSkinManagerTransformer;
import customskinloader.forge.transformer.PlayerTabTransformer;
import customskinloader.forge.transformer.SkinManagerTransformer;
import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.tree.MethodNode;
/**
* ModLauncher for 1.13+
* @deprecated Use JavaScript Instead
*/
@Deprecated
public class ModLauncher {
private static final TransformerManager.IMethodTransformer[] TRANFORMERS = {
new SkinManagerTransformer.InitTransformer(),
new SkinManagerTransformer.LoadSkinTransformer(),
new SkinManagerTransformer.LoadProfileTexturesTransformer(),
new SkinManagerTransformer.LoadSkinFromCacheTransformer(),
new PlayerTabTransformer.ScoreObjectiveTransformer(),
new FakeSkinManagerTransformer.InitTransformer()
};
private TransformerManager transformerManager = new TransformerManager(TRANFORMERS);
public ClassNode transform(ClassNode input) {
for (MethodNode mn : input.methods) {
transformerManager.transform(input, mn, input.name, mn.name, mn.desc);
}
return input;
}
//Singleton
private volatile static ModLauncher INSTANCE = null;
public static ModLauncher instance() {
if (INSTANCE == null) {
synchronized (ModLauncher.class) {
if (INSTANCE == null) {
INSTANCE = new ModLauncher();
}
}
}
return INSTANCE;
}
}
@@ -0,0 +1,57 @@
package customskinloader.forge.transformer;
import customskinloader.forge.TransformerManager;
import customskinloader.forge.TransformerManager.IMethodTransformer;
import customskinloader.forge.TransformerManager.TransformTarget;
import org.objectweb.asm.tree.*;
import java.util.ListIterator;
/**
* Transformer of FakeSkinManager for 1.13+
* @deprecated Use JavaScript Instead
*/
@Deprecated
public class FakeSkinManagerTransformer {
private final static String TARGET_CLASS = "net/minecraft/client/renderer/ThreadDownloadImageData";
private final static String NEW_TARGET_CLASS = "net/minecraft/client/renderer/texture/ThreadDownloadImageData";
private final static String CALLBACK_CLASS = "net/minecraft/client/resources/SkinManager$SkinAvailableCallback";
@TransformTarget(className = "customskinloader.fake.FakeSkinManager",
methodNames = {"<init>"},
desc = "(Lnet/minecraft/client/renderer/texture/TextureManager;Ljava/io/File;Lcom/mojang/authlib/minecraft/MinecraftSessionService;)V")
public static class InitTransformer implements IMethodTransformer {
@Override
public void transform(ClassNode cn, MethodNode mn) {
TransformerManager.logger.info("1.13 detected, FakeSkinManager will be transformed.");
//ClassNameRemapper.remapClassName(cn, TARGET_CLASS, NEW_TARGET_CLASS);
//MethodNameRemapper.remapMethodName(cn, CALLBACK_CLASS, "func_180521_a", "onSkinTextureAvailable");
InsnList il = mn.instructions;
ListIterator<AbstractInsnNode> li = il.iterator();
while (li.hasNext()) {
AbstractInsnNode ain = li.next();
if (ain instanceof MethodInsnNode) {
MethodInsnNode min = (MethodInsnNode) ain;
if (min.owner.equals(TARGET_CLASS)) {
min.owner = NEW_TARGET_CLASS;
//il.set(min, new MethodInsnNode(min.getOpcode(), NEW_TARGET_CLASS, min.name, min.desc, false));
}
if (min.owner.equals(CALLBACK_CLASS) && min.name.equals("func_180521_a")) {
min.name = "onSkinTextureAvailable";
//il.set(min, new MethodInsnNode(min.getOpcode(), min.owner, "onSkinTextureAvailable", min.desc, false));
}
} else if (ain instanceof TypeInsnNode) {
TypeInsnNode tin = (TypeInsnNode) ain;
if (tin.desc.equals(TARGET_CLASS)) {
tin.desc = NEW_TARGET_CLASS;
}
}
}
}
}
}
@@ -13,23 +13,22 @@ import customskinloader.forge.TransformerManager.IMethodTransformer;
import customskinloader.forge.TransformerManager.TransformTarget; import customskinloader.forge.TransformerManager.TransformTarget;
public class PlayerTabTransformer { public class PlayerTabTransformer {
@TransformTarget(className="net.minecraft.client.gui.GuiPlayerTabOverlay", @TransformTarget(className = "net.minecraft.client.gui.GuiPlayerTabOverlay",
methodNames={"func_175249_a","renderPlayerlist"}, methodNames = {"func_175249_a", "renderPlayerlist"},
desc="(ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V") desc = "(ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V")
public static class ScoreObjectiveTransformer implements IMethodTransformer{ public static class ScoreObjectiveTransformer implements IMethodTransformer {
//From: http://git.oschina.net/AsteriskTeam/TabIconHackForge/blob/master/src/main/java/kengxxiao/tabiconhack/coremod/TabIconHackForgeClassTransformer.java#L30-L43 //From: http://git.oschina.net/AsteriskTeam/TabIconHackForge/blob/master/src/main/java/kengxxiao/tabiconhack/coremod/TabIconHackForgeClassTransformer.java#L30-L43
@Override @Override
public void transform(ClassNode cn, MethodNode mn) { public void transform(ClassNode cn, MethodNode mn) {
ListIterator<AbstractInsnNode> iterator = mn.instructions.iterator(); ListIterator<AbstractInsnNode> iterator = mn.instructions.iterator();
while (iterator.hasNext()) while (iterator.hasNext()) {
{ AbstractInsnNode node = iterator.next();
AbstractInsnNode node = iterator.next(); if (node instanceof VarInsnNode) {
if (node instanceof VarInsnNode) VarInsnNode varNode = (VarInsnNode) node;
{ if (varNode.getOpcode() == Opcodes.ISTORE && varNode.var == 11) {
VarInsnNode varNode = (VarInsnNode) node; mn.instructions.set(varNode.getPrevious(), new InsnNode(Opcodes.ICONST_1));
if (varNode.getOpcode() == Opcodes.ISTORE && varNode.var == 11) }
mn.instructions.set(varNode.getPrevious(), new InsnNode(Opcodes.ICONST_1)); }
}
} }
} }
} }
@@ -2,6 +2,8 @@ package customskinloader.forge.transformer;
import java.util.ListIterator; import java.util.ListIterator;
import customskinloader.forge.TransformerManager;
import net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper;
import org.objectweb.asm.Opcodes; import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.AbstractInsnNode; import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.ClassNode; import org.objectweb.asm.tree.ClassNode;
@@ -12,40 +14,43 @@ import org.objectweb.asm.tree.MethodNode;
import customskinloader.forge.TransformerManager.IMethodTransformer; import customskinloader.forge.TransformerManager.IMethodTransformer;
import customskinloader.forge.TransformerManager.TransformTarget; import customskinloader.forge.TransformerManager.TransformTarget;
/**
* Transformer of Spectator Menu for 1.13-
*/
public class SpectatorMenuTransformer { public class SpectatorMenuTransformer {
@TransformTarget(className="net.minecraft.client.gui.spectator.PlayerMenuObject", @TransformTarget(className = "net.minecraft.client.gui.spectator.PlayerMenuObject",
methodNames={"<init>"}, methodNames = {"<init>"},
desc="(Lcom/mojang/authlib/GameProfile;)V") desc = "(Lcom/mojang/authlib/GameProfile;)V")
public static class PlayerMenuObjectTransformer implements IMethodTransformer{ public static class PlayerMenuObjectTransformer implements IMethodTransformer {
@Override @Override
public void transform(ClassNode cn, MethodNode mn) { public void transform(ClassNode cn, MethodNode mn) {
InsnList il=mn.instructions; InsnList il = mn.instructions;
ListIterator<AbstractInsnNode> li=il.iterator(); ListIterator<AbstractInsnNode> li = il.iterator();
boolean flag=false; boolean flag = false;
while(li.hasNext()) { while (li.hasNext()) {
AbstractInsnNode ain=li.next(); AbstractInsnNode ain = li.next();
if(ain.getOpcode()!=Opcodes.INVOKESTATIC) if (ain.getOpcode() != Opcodes.INVOKESTATIC)
continue; continue;
MethodInsnNode min = (MethodInsnNode)ain; if (!flag) {
if(min.owner.equals("net/minecraft/client/entity/AbstractClientPlayer"))//Fix 1.13
continue;
if(!flag) {
//First InvokeStatic //First InvokeStatic
il.set(ain, new MethodInsnNode(Opcodes.INVOKESTATIC,"customskinloader/fake/FakeClientPlayer","getLocationSkin", il.set(ain, new MethodInsnNode(Opcodes.INVOKESTATIC,
"(Ljava/lang/String;)Lnet/minecraft/util/ResourceLocation;",false)); "customskinloader/fake/FakeClientPlayer",
flag=true; "getLocationSkin",
}else { "(Ljava/lang/String;)Lnet/minecraft/util/ResourceLocation;", false));
flag = true;
} else {
//Second InvokeStatic //Second InvokeStatic
il.set(ain, new MethodInsnNode(Opcodes.INVOKESTATIC,"customskinloader/fake/FakeClientPlayer","getDownloadImageSkin", il.set(ain, new MethodInsnNode(Opcodes.INVOKESTATIC,
"(Lnet/minecraft/util/ResourceLocation;Ljava/lang/String;)Lnet/minecraft/client/renderer/ThreadDownloadImageData;",false)); "customskinloader/fake/FakeClientPlayer",
"getDownloadImageSkin",
"(Lnet/minecraft/util/ResourceLocation;Ljava/lang/String;)Lnet/minecraft/client/renderer/ThreadDownloadImageData;", false));
break; break;
} }
} }
} }
} }
} }
@@ -0,0 +1,20 @@
package net.minecraftforge.fml.common;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
//https://github.com/MinecraftForge/MinecraftForge/blob/1.13.x/src/main/java/net/minecraftforge/fml/common/Mod.java
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Mod {
String value();
//From 1.12.x
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@interface EventHandler {
}
}
+29 -24
View File
@@ -1,51 +1,54 @@
# CustomSkinLoader # CustomSkinLoader
## What's this? ## What's this?
Custom Skin Loader mod for Minecraft. Custom Skin Loader mod for Minecraft.
It's a mod which can load skin from any online source or local source. It's a mod which can load skins and capes from any online source or from your local.
## Download ## Download
Build Server : [CircleCI](https://circleci.com/gh/xfl03/MCCustomSkinLoader) & [~~Infinity Studio CI~~](https://ci.infstudio.net/job/CustomSkinLoader/) Build Server : [CircleCI](https://circleci.com/gh/xfl03/MCCustomSkinLoader) & ~~[Infinity Studio CI](https://ci.infstudio.net/job/CustomSkinLoader/)~~
Release Page : [MCBBS](http://www.mcbbs.net/thread-269807-1-1.html) & [GitHub](https://github.com/xfl03/MCCustomSkinLoader/releases) & [CurseForge](https://minecraft.curseforge.com/projects/customskinloader) Release Page : [MCBBS](http://www.mcbbs.net/thread-269807-1-1.html) & [GitHub](https://github.com/xfl03/MCCustomSkinLoader/releases) & [CurseForge](https://minecraft.curseforge.com/projects/customskinloader)
## Feature ## Feature
### Plenty of Skin Load API Support and Customizable Skin Load List ### Support Plenty of Skin Load API and Customizable Skin Load List
Skin Load API Supported: Supported Skin Load APIs:
- [Mojang API](http://wiki.vg/Mojang_API) - [Mojang API](http://wiki.vg/Mojang_API)
- [CustomSkinAPI](https://github.com/xfl03/CustomSkinLoaderAPI/tree/master/CustomSkinAPI) - [CustomSkinAPI](https://github.com/xfl03/CustomSkinLoaderAPI/tree/master/CustomSkinAPI)
- CustomSkinAPIPlus (Test Only) - CustomSkinAPIPlus (Test Only)
- [UniSkinAPI](https://github.com/RecursiveG/UniSkinServer/tree/master/doc) - [UniSkinAPI](https://github.com/RecursiveG/UniSkinServer/tree/master/doc)
- [ElfByAPI](http://docs.ely.by/api.html) - [ElyByAPI](http://docs.ely.by/api.html)
- Legacy - Legacy
You can use this feature to customize your skin load list so as to load from any skin server you want. You can use this feature to customize your skin load list so as to load your skins from any skin server you want.
If you are the owner of skin server, you can use CustomSkinLoader to load skin from your server if one of the api has been actualized. If you are the owner of skin server, you can use CustomSkinLoader to load skins from your server if one of the APIs has been actualized by your server.
### HD Skins Support ### HD Skins Support
Even though there is no Optifine or MCPatcher, CustomSkinLoader has fix this problem. Even though you don't have OptiFine and MCPatcher, CustomSkinLoader can still load and render HD skins.
You can easily to get a better view in skin. You can easily to get a better view of skins.
### Skull Support ### Skull Support
Fixed skull load bug. Fixed skull loading bug, you can apply any skin to your skull now.
Dynamic skull supported. Dynamic skull supported.
### Profile Cache ### Profile Cache
- Decrease frenquency of using network. - Decrease the frenquency of using the network.
- Meanwhile,you can still load profile without network. - Meanwhile, you can still load profiles when network is unavailable.(*)
*Should be open in configratulation file. *Only when it is opened in configratulation.
### Local Skin ### Local Skin
Load skin without skin server. Load skins without a skin server.
Furthermore, by using this function you can preview your skin in game and even change default skin and model. Furthermore, by using this function you can preview your skins in game and even change the default skin and model.
You can load local skin by using any API(excluding MojangAPI). You can load local skins by using any API (excluding MojangAPI).
*While using default configratulation, just put skin into `.minecraft/CustomSkinLoader/LocalSkin/(skin|cape)s/{USERNAME}.png`. *While using default configratulation, just put your skins into `.minecraft/CustomSkinLoader/LocalSkin/(skin|cape)s/{USERNAME}.png`.
### Extra List ### Extra List
A json file generated by supported skin server. A json file generated by skin servers which supports this feature.
To add server to load list, users just need to put file into `.minecraft/CustomSkinLoader/ExtraList` . To add a server to your load list, users just need to put the file into `.minecraft/CustomSkinLoader/ExtraList` .
### Transparent Skin Support ### Transparent Skin Support
The problem of rendering incorrect texture has been fixed. The problem of incorrectly rendering textures has been fixed.
### Spectator Menu Fixed
By using this mod, you can see correct avatar of players in Spectator Menu rather than steve and alex.
## Default Load List ## Default Load List
- [Mojang](http://www.minecraft.net/) (Mojang API) - [Mojang](http://www.minecraft.net/) (Mojang API)
@@ -57,11 +60,11 @@ The problem of rendering incorrect texture has been fixed.
If you want to apply to add other skin server to default list, please go to [issue](https://github.com/JLChnToZ/MCCustomSkinLoader/issues). If you want to apply to add other skin server to default list, please go to [issue](https://github.com/JLChnToZ/MCCustomSkinLoader/issues).
## To Skin Server Owner ## To Skin Server Owner
CustomSkinLoader is designed for loading from any server, which makes it complex. CustomSkinLoader is designed for loading from any server, which makes the mod complex.
It's not a good idea to refer to CustomSkinLoader's source code to develop your own skin mod. It's not a good idea to refer to CustomSkinLoader's source code to develop your own skin mod.
It's recommended to use CustomSkinLoader for your server directly. It's recommended to use CustomSkinLoader for your server directly.
Furthermore, you can add your server to 'Default Load List'. Furthermore, you can add your server to 'Default Load List'.
You also can use 'ExtraList' which makes it easier for user to adds your server into load list. You can also use 'ExtraList' which makes it easier for users to add your server into load list.
## Copyright & LICENSE ## Copyright & LICENSE
### Binary File ### Binary File
@@ -72,9 +75,10 @@ You could not repost this mod to any website without permission.
You could not earn money with this mod excluding modpack. You could not earn money with this mod excluding modpack.
### Source Code ### Source Code
#### Package 'customskinloader' #### Package 'customskinloader'
Including some code from Including some codes from
- [AsteriskTeam/TabIconHackForge](http://git.oschina.net/AsteriskTeam/TabIconHackForge) (GPLv3) - [AsteriskTeam/TabIconHackForge](http://git.oschina.net/AsteriskTeam/TabIconHackForge) (GPLv3)
- [RecursiveG/UniSkinMod](https://github.com/RecursiveG/UniSkinMod) (GPLv3) - [RecursiveG/UniSkinMod](https://github.com/RecursiveG/UniSkinMod) (GPLv3)
- [NekoCaffeine/Alchemy](https://github.com/NekoCaffeine/Alchemy) (GPLv3)
Copyright(C) 2013-2018 JLChnToZ xfl03 Copyright(C) 2013-2018 JLChnToZ xfl03
@@ -83,4 +87,5 @@ Copyright(C) 2013-2018 JLChnToZ xfl03
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
GPLv3: http://www.gnu.org/licenses/gpl.html GPLv3: http://www.gnu.org/licenses/gpl.html
You should change the name of package to avoid others' misunderstanding.
You should change the name of the package to avoid others' misunderstanding.
@@ -13,7 +13,7 @@ public class ModSystemTweaker implements ITweaker {
public static Logger logger = new Logger(); public static Logger logger = new Logger();
public void acceptOptions(List args, File gameDir, File assetsDir, String profile) { public void acceptOptions(List args, File gameDir, File assetsDir, String profile) {
File tweakerLogFile = new File(gameDir,"CustomSkinLoader/Tweaker.log"); File tweakerLogFile = new File(gameDir,"./CustomSkinLoader/Tweaker.log");
logger = new Logger(tweakerLogFile); logger = new Logger(tweakerLogFile);
logger.info("Using ModSystemTweaker"); logger.info("Using ModSystemTweaker");
@@ -17,7 +17,7 @@ public class Tweaker implements ITweaker {
public static Logger logger = new Logger(); public static Logger logger = new Logger();
public void acceptOptions(List<String> args, File gameDir, File assetsDir, String profile) { public void acceptOptions(List<String> args, File gameDir, File assetsDir, String profile) {
File tweakerLogFile = new File(gameDir,"CustomSkinLoader/Tweaker.log"); File tweakerLogFile = new File(gameDir,"./CustomSkinLoader/Tweaker.log");
logger = new Logger(tweakerLogFile); logger = new Logger(tweakerLogFile);
logger.info("Using Tweaker"); logger.info("Using Tweaker");
+10 -1
View File
@@ -2,7 +2,6 @@ apply plugin: 'base'
ext.configFile = file "build.properties" ext.configFile = file "build.properties"
configFile.withReader { configFile.withReader {
// read config. it shall from now on be referenced as simply config or as project.config
def prop = new Properties() def prop = new Properties()
prop.load(it) prop.load(it)
project.ext.config = new ConfigSlurper().parse prop project.ext.config = new ConfigSlurper().parse prop
@@ -24,4 +23,14 @@ buildscript {
subprojects { subprojects {
if (!project.name.toLowerCase().contains("forge")) if (!project.name.toLowerCase().contains("forge"))
apply from: rootProject.file('common.gradle') apply from: rootProject.file('common.gradle')
}
apply from: rootProject.file('BuildScripts/cos.gradle')
apply from: rootProject.file('BuildScripts/version.gradle')
task upload {
onlyIf { System.getenv("COS_SECRET_KEY") != null }
doLast {
uploadArtifacts(getShortVersion())
}
} }
+1 -1
View File
@@ -1,6 +1,6 @@
name=CustomSkinLoader name=CustomSkinLoader
group=customskinloader group=customskinloader
version=14.9 version=14.10
dev_version= dev_version=
#RELEASE: snapshot=0 #RELEASE: snapshot=0
snapshot=0 snapshot=0
+29 -54
View File
@@ -15,17 +15,16 @@ apply plugin: 'net.minecraftforge.gradle.forge'
ext.configFile = file "build.properties" ext.configFile = file "build.properties"
configFile.withReader { configFile.withReader {
// read config. it shall from now on be referenced as simply config or as project.config
def prop = new Properties() def prop = new Properties()
prop.load(it) prop.load(it)
project.ext.config = new ConfigSlurper().parse prop project.ext.config = new ConfigSlurper().parse prop
} }
ext.release = (rootProject.ext.config.snapshot == "" || rootProject.ext.config.snapshot == "0" || rootProject.ext.config.snapshot == 0) apply from: rootProject.file("BuildScripts/version.gradle")
//Example: 14.4a-SNAPSHOT-20160820
version = rootProject.ext.config.version + rootProject.ext.config.dev_version + version = getCSLVersion()
(ext.release ? '' : ('-SNAPSHOT-' + System.getenv("CIRCLE_BUILD_NUM")))
group = config.group group = config.group
archivesBaseName = rootProject.ext.config.name + "_" + config.minecraft_version archivesBaseName = rootProject.ext.config.name + "_" + config.minecraft_version
ext.shortVersion = getShortVersion()
sourceCompatibility = targetCompatibility = 1.6 sourceCompatibility = targetCompatibility = 1.6
compileJava { compileJava {
@@ -70,25 +69,29 @@ sourceSets {
processResources { processResources {
expand([ expand([
modVersion : rootProject.ext.config.version, modVersion : rootProject.ext.config.version,
modFullVersion: project.version, modFullVersion : project.version,
mcVersion : config.minecraft_version, modShortFullVersion: shortVersion,
mcFullVersions: config.minecraft_full_versions, mcVersion : config.minecraft_version,
forgeVersion : config.forge_version, mcFullVersions : config.minecraft_full_versions,
gitVersion : System.getenv("CIRCLE_SHA1"), forgeVersion : config.forge_version,
buildUrl : System.getenv("CIRCLE_BUILD_URL") gitVersion : System.getenv("CIRCLE_SHA1"),
buildUrl : System.getenv("CIRCLE_BUILD_URL")
]) ])
} }
task copyResources << { task copyResources {
def outputFile = file("src/main/resources") doLast {
outputFile.deleteDir() def outputFile = file("src/main/resources")
copy { outputFile.deleteDir()
from '../Common/resource' copy {
into 'src/main/resources' from '../Common/resource'
into 'src/main/resources'
}
} }
} }
processResources.dependsOn copyResources processResources.dependsOn copyResources
apply from: rootProject.file("BuildScripts/remap.gradle")
task afterBuild { task afterBuild {
doLast { doLast {
//renameSrgJar //renameSrgJar
@@ -108,41 +111,13 @@ task afterBuild {
exclude '**/*-dev.jar' exclude '**/*-dev.jar'
exclude '**/*-sources.jar' exclude '**/*-sources.jar'
} }
//copyProfileJson
File f = project.file("build/resources/main/Profile.json")
String of = String.format("build/libs/%s-CSL-%s.json", config.minecraft_version, shortVersion)
File off = rootProject.file(of)
off.parentFile.mkdirs()
f.renameTo(off)
} }
} }
build.finalizedBy afterBuild build.finalizedBy afterBuild
//notch pack
void reobfSrgToNotch() {
def srgName = "${archivesBaseName}-${version}-srg.jar"
def notchName = srgName.replace('-srg', '')
if (config.srg_notch_map == null || !(config.srg_notch_map instanceof String) || config.srg_notch_map == "") {
//Default Map
def mcpName = srgName.replace('-srg', '-dev')
applySpecialSource(srgName, mcpName, getDefaultMap("srg-mcp"))
applySpecialSource(mcpName, notchName, getDefaultMap("mcp-notch"))
} else {
//Custom Map
applySpecialSource(srgName, notchName, config.srg_notch_map)
}
}
void applySpecialSource(String inputName, String outputName, String mapFile) {
def mapping = new net.md_5.specialsource.JarMapping()
def srgFile = file(mapFile)
def inputFile = file("build/libs/${inputName}")
def outputFile = file("build/libs/${outputName}")
def remapper = new net.md_5.specialsource.JarRemapper(null, mapping)
def inputJar = net.md_5.specialsource.Jar.init(inputFile)
def inheritanceProviders = new net.md_5.specialsource.provider.JointProvider()
def jarProvider = new net.md_5.specialsource.provider.JarProvider(inputJar)
inheritanceProviders.add(jarProvider)
mapping.loadMappings(srgFile)
mapping.setFallbackInheritanceProvider(inheritanceProviders)
remapper.remapJar(inputJar, outputFile)
}
String getDefaultMap(String srgType) {
def mcpVersion = minecraft.mappings.replace('_', "/")
return System.getProperty('user.home') + "/.gradle/caches/minecraft/de/oceanlabs/mcp/mcp_${mcpVersion}/${config.forge_mc_version}/srgs/${srgType}.srg"
}
+2 -2
View File
@@ -1,5 +1,5 @@
//Special Vanilla Edition //Special Vanilla Edition
include "1.13" include "1.13.2"
//Universal Forge Edition for [1.8,) //Universal Forge Edition for [1.8,)
include "Forge" include "Forge"