-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from KatatsumuriPan/develop
Update to v1.6.0
- Loading branch information
Showing
35 changed files
with
849 additions
and
673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/kpan/uti_alsofluids/asm/acc/integration/ftbquests/ACC_ButtonTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package kpan.uti_alsofluids.asm.acc.integration.ftbquests; | ||
|
||
|
||
import kpan.uti_alsofluids.asm.core.adapters.MixinAccessorAdapter.NewField; | ||
|
||
public interface ACC_ButtonTask { | ||
|
||
//新しいインスタンスフィールドの追加&getter作成 | ||
//getterとsetterの両方を作成する必要はないが、初期化する方法が無いので両方作るのが基本 | ||
//@NewFieldはgetterとsetterの両方に必要 | ||
@NewField | ||
String get_localizedLine(); | ||
|
||
//新しいインスタンスフィールドの追加&setter作成 | ||
//説明はgetter同様 | ||
@NewField | ||
void set_localizedLine(String value); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/kpan/uti_alsofluids/asm/core/AccessTransformerForMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package kpan.uti_alsofluids.asm.core; | ||
|
||
import com.google.common.io.CharSource; | ||
import net.minecraftforge.fml.common.asm.transformers.AccessTransformer; | ||
|
||
import java.io.IOException; | ||
|
||
public class AccessTransformerForMixin extends AccessTransformer { | ||
|
||
private static AccessTransformerForMixin INSTANCE; | ||
private static boolean callSuper = false; | ||
|
||
|
||
public static void toPublic(String deobfOwner, String srgMethodName, String deobfMethodDesc) { | ||
String rule = "public " + deobfOwner + " " + srgMethodName + deobfMethodDesc; | ||
callSuper = true; | ||
INSTANCE.processATFile(CharSource.wrap(rule)); | ||
callSuper = false; | ||
} | ||
|
||
public AccessTransformerForMixin() throws IOException { | ||
super(); | ||
INSTANCE = this; | ||
} | ||
|
||
@Override | ||
protected void processATFile(CharSource rulesResource) { | ||
if (!callSuper) | ||
return; | ||
try { | ||
super.processATFile(rulesResource); | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.