-
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.
See change log
- Loading branch information
Showing
26 changed files
with
734 additions
and
225 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# v1.0 | ||
|
||
### 进入游戏, 设置, OMMC按键设置, 即可查看菜单. | ||
|
||
--- | ||
|
||
|
||
## 新功能 | ||
|
||
* 自动前进 | ||
* 自动向左 | ||
* 自动后退 | ||
* 自动向后 | ||
* 自动跳跃 | ||
* 自动潜行 | ||
* 自动攻击 | ||
* 长按右键 | ||
* 自动合成(开发中) | ||
* 渲染实体(开发中) | ||
* 快速飞行 | ||
* 复制tp坐标 | ||
* 切换游戏模式 |
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,25 @@ | ||
# v1.1 | ||
|
||
### 进入游戏, 设置, OMMC按键设置, 即可查看菜单. | ||
|
||
### 配置文件目录在 "configs/OMMCTweaks.json"(用于储存按键绑定) | ||
|
||
### 以及 "configs/OhMyMiteClient.json"(用于配置数值) | ||
|
||
--- | ||
|
||
## 通知 | ||
|
||
本模组将迁移至FML3.0.0, 这可能是FML2.0.0的最后一个版本 | ||
|
||
## 新功能 | ||
|
||
* 自动合成 | ||
* 禁止渲染生物 | ||
|
||
## 更改 | ||
|
||
* 为*快速飞行*支持了升降速度 | ||
* *渲染实体*功能开发完毕, 改名为*禁止渲染生物* | ||
* 重构了配置系统, 现在退出游戏时会保留按键功能开启情况 | ||
* 现在原版按键设置界面中, 如果与OMMC按键冲突也会标红了 |
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
28 changes: 28 additions & 0 deletions
28
src/com/github/Debris/oh_my_mite_client/config/ConfigUtils.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,28 @@ | ||
package com.github.Debris.oh_my_mite_client.config; | ||
|
||
import com.google.gson.JsonObject; | ||
|
||
import java.util.List; | ||
|
||
public class ConfigUtils { | ||
public static void readConfigBase(JsonObject root, String category, List<TweakToggle> options) { | ||
JsonObject obj = JsonUtils.getNestedObject(root, category, false); | ||
|
||
if (obj != null) { | ||
for (IConfigBase option : options) { | ||
String name = option.getName(); | ||
|
||
if (obj.has(name)) { | ||
option.setValueFromJsonElement(obj.get(name)); | ||
} | ||
} | ||
} | ||
} | ||
|
||
public static void writeConfigBase(JsonObject root, String category, List<TweakToggle> options) { | ||
JsonObject obj = JsonUtils.getNestedObject(root, category, true); | ||
for (TweakToggle option : options) { | ||
obj.add(option.getName(), option.getAsJsonElement()); | ||
} | ||
} | ||
} |
95 changes: 0 additions & 95 deletions
95
src/com/github/Debris/oh_my_mite_client/config/FeatureToggle.java
This file was deleted.
Oops, something went wrong.
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
9 changes: 9 additions & 0 deletions
9
src/com/github/Debris/oh_my_mite_client/config/IConfigBase.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,9 @@ | ||
package com.github.Debris.oh_my_mite_client.config; | ||
|
||
import com.google.gson.JsonElement; | ||
|
||
public interface IConfigBase { | ||
String getName(); | ||
void setValueFromJsonElement(JsonElement element); | ||
JsonElement getAsJsonElement(); | ||
} |
Oops, something went wrong.