-
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.
enhance: 允许通过指令设定部分列表类型的配置 misc: 调整FlyAbility更新的频率 misc: 一些本地化
- Loading branch information
1 parent
ce3b083
commit ed78e6d
Showing
8 changed files
with
177 additions
and
52 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
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
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
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 @@ | ||
package xiamomc.morph.utilities; | ||
|
||
import xiamomc.pluginbase.Bindables.BindableList; | ||
|
||
public class BindableUtils | ||
{ | ||
public static String bindableListToString(BindableList<?> bindableList) | ||
{ | ||
var builder = new StringBuilder(); | ||
var it = bindableList.listIterator(); | ||
|
||
while (it.hasNext()) | ||
{ | ||
var obj = it.next(); | ||
builder.append(obj); | ||
|
||
if (it.hasNext()) builder.append(", "); | ||
} | ||
|
||
return "[%s]".formatted(builder); | ||
} | ||
} |
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.