mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-19 11:49:05 +00:00
- Extending API with chat functionality
- Refactoring towards MineTweakerMC calls - Added IC2 matter amplifier support
This commit is contained in:
1 parent
7c478da1a2
commit
ea0d369519
95 files changed
+1828
-547
No files matched your search
@@ -6,6 +6,8 @@
|
||||
|
||||
package minetweaker.expand;
|
||||
|
||||
import minetweaker.MineTweakerAPI;
|
||||
import minetweaker.api.chat.IChatMessage;
|
||||
import minetweaker.api.data.DataString;
|
||||
import minetweaker.api.data.IData;
|
||||
import stanhebben.zenscript.annotations.ZenCaster;
|
||||
@@ -21,4 +23,9 @@ public class ExpandString {
|
||||
public static IData asData(String value) {
|
||||
return new DataString(value);
|
||||
}
|
||||
|
||||
@ZenCaster
|
||||
public static IChatMessage asChatMessage(String value) {
|
||||
return MineTweakerAPI.platform.getMessage(value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user