此模组添加了许多不同但简单且实用的类,以帮助模组开发者更轻松地进行开发。本模组是使用 MCreators 自定义元素代码编辑器创建的,我主要选择该编辑器是因为我喜欢它的界面,它能自动提供正确的依赖项,并且我将其用作模板。无需其他模组支持。第一个版本没有使用任何 Mixin,但我计划稍后添加一些。
功能:
1.加密器 (Encryptor) :
1. 导入 com.mods.turtle_lib.EnCryptor
2. 调用 EnCryptor.execute(String in, SecretKey key)
3. 它将返回一个字符串,享受你新的加密文本吧!
2.解密器 (Decryptor):
1. 导入 com.mods.turtle_lib.DeCryptor
2. 调用 DeCryptor.execute(String in, SecretKey key)
3. 它将返回一个字符串,享受你新的解密文本吧!
3.结构/特性放置器 (Structure/feature placer) :
1. 导入 com.mods.turtle_lib.PlaceStructure
2. 调用 PlaceStructure.execute(LevelAccessor world, double x, double y, double z, String mod_id, String structureTp, String featureTp, boolean structurePlace, boolean featurePlace)
3. 你需要传入世界对象、坐标、模组的 ID、结构位置、特性位置,以及两个布尔值:一个用于决定是否放置结构,另一个用于决定是否放置特性
4. 不返回任何内容,享受你新的结构吧!
4.编码器 (Encoder):
1. 导入 com.mods.turtle_lib.Base64Encoder
3. 调用 base64Encoder.execute(String)
2. 传入一个字符串,它将返回一个字符串,这样你就得到了一些编码后的文本!
5.解码器 (Decoder)
1. 导入 com.mods.turtle_lib.Base64Decoder
2. 调用 Base64Decoder.execute(String)
3. 传入一个字符串,它将返回一个字符串,这样你就得到了一些解码后的文本!
6.TurtleIfy
1. 导入 com.mods.turtle_lib.TurtleIfy
2. 调用 TurtleIfy.execute(String Boolean)
3. 返回一个包含你输入字符串的字符串,但每个字符中都会插入 "urtle";如果布尔值为 true,则会插入 "urtle "(带空格)
7.更好的随机数生成 (Better random)
1. 导入 com.mods.turtle_lib.RandomWMinMax
2. 调用 RandomWMinMax.execute(int, int)
3. 第一个 int 是“起始”值,第二个 int 是“结束”值,返回一个整数。
警告:文档中未包含所有功能 警告:文档中可能存在错误 只要给予适当的署名,你就可以在你的整合包中使用此模组。
会支持 Forge 吗?
很可能不会,除非有其他人为此提供支持,因为我不擅长 Forge 开发,而且那样会花费太长时间。
会支持 Fabric 或 Babric 吗?
Babric 很可能不会,因为我从未使用过 Fabric 或 Babric,而且我认为我无法处理那些较旧的 Minecraft 版本,我倾向于专注于较现代的功能。至于 Fabric……也许吧。
会支持原版吗?
呃……可能在遥远的未来。
This mod adds many diffent simple, but useful classes to make modders have an easyer life. This was created with MCreators custom element code editor, I mainly did that because I liked the editor, it automaticly came with the correct dependencies, and I used it as a template. Requires no other mods. First version has 0 mixins, but I'm planning on adding a little.
Features:
1.Encryptor :
1. Import com.mods.turtle_lib.EnCryptor
2. Call EnCryptor.execute(String in, SecretKey key)
3. It returns a string, enjoy your new encrypted text!
2. Decryptor:
1. Import com.mods.turtle_lib.DeCryptor
2. Call DeCryptor.execute(String in, SecretKey key)
3. It returns a string, enjoy your new decrypted text!
3.Structure/feature placer :
1. Import com.mods.turtle_lib.PlaceStructure
2. call PlaceStructure.execute(LevelAccessor world, double x, double y, double z, String mod_id, String structureTp, String featureTp, boolean structurePlace, boolean featurePlace)
3. you need the world, the coords, the mod id of the structure, the structure location and feature location, and two bools, one to tell the function to place the structure or not and one to place the feature or not
4. Returns nothing, enjoy your new structure!
4.Encoder:
1. Import com.mods.turtle_lib.Base64Encoder
3.call base64Encoder.execute(String)
2. give it a string and it'll give you a string, and there, you got some encoded text!
5.Decoder
1.Import com.mods.turtle_lib.Base64Decoder
2.call Base64Decoder.execute(String)
3.give it a string and it'll give you a string, and there, you got some decoded text!
6.TurtleIfy
1. Import com.mods.turtle_lib.TurtleIfy
2.call TurtleIfy.execute(String Boolean)
3. Returns a string containg your inputed string but every character has "urtle" shoved in it or if the boolean is true it will put "urtle "
7.Better random
1.Import com.mods.turtle_lib.RandomWMinMax
2.call RandomWMinMax.execute(int, int)
3. int 1 is the "from" value and int 2 is the "to" value returns an integer.
Warning: not all features included in documentaion Warning: I could have made mistakes in the documentation You can use this mod in your modpack as long as you give some form of credit.
Will it support forge?
Most likely not unless somebody else offers to do It because I'm not a good forge dev and that would take too long
Will it support fabric or babric
Most likely not babric because I've never used fabric or babric and I dont think I can handle that old of minecraft versions, I tend to stick to modern-ish features. And fabric... Mayybee.
Will it support vanilla
Uhh... maybe in the far future
下载 Turtle library
下载 Turtle library
下载 Turtle library
下载 Turtle library
下载 Turtle library
下载 Turtle library
下载 Turtle library
bugfix: 由于缺少 mixin 导致的崩溃
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧