AdvancedHoppers by courtega
使用这款轻量且高性能的实用插件,简化漏斗配置并节省材料!过滤表达式的语法非常简单,学习用时不到三分钟。
有什么改进?
以下是 AdvancedHoppers 相对于 HopperFilter 0.3.1 所做的改进汇总:
- 集成聊天功能,让你更轻松地查看操作结果
- 被排除的物品不再堵塞漏斗
- 新增
config.toml,方便服务器管理员轻松修改功能设置
- 新增
locale.toml,使对话框内容可翻译为其他语言
- 移除了可能无用的分组分隔符,改用 OR(或)运算符(
|)
- 代码优化,降低内存占用(在我的基础测试中约为 20%;具体效果因人而异)
如何使用?
设置过滤器主要有两种方式:
- 在主手持有你想要过滤的物品,然后潜行并点击漏斗(
Shift + 左键点击)。
- 手中为空时,潜行并点击漏斗(
Shift + 左键点击),然后在聊天栏中输入你想要设置的过滤表达式。
近期更新日志
1.0.0-alpha.3
本次更新没有太多新功能。
- 现在可以通过
Shift + 左键点击 来重命名漏斗矿车!
- 音效选择现已移至
config.toml 中进行配置!
- 将大部分代码库迁移至 Kotlin。我还在犹豫是否喜欢这种改变。
- 其他一些小功能和改动
1.0.0-alpha.2
- 新增
config.toml,允许管理员轻松更改设置和功能。
- 新增
locale.toml!这让面向非英语玩家群体的服务器可以轻松地将对话翻译成他们的母语!
- 修复了几个小错误。
备注:我决定选用 TOML 作为首选的配置格式,因为我个人觉得 YAML 很糟糕。我认为 TOML 在易用性和结构之间取得了不错的平衡。
1.0.0-alpha.1
- 集成聊天功能,当你编辑过滤表达式时会通知你,并在编辑取消时进行提示。
- 不被过滤漏斗接受的物品将不再堵塞它!
- 轻微的性能优化(在我的基础测试中,内存占用减少了 20%,但具体效果因人而异)
- 移除分组分隔符,改用 OR 运算符。
- 通过将
_ 改为更直观的 :,修复了附魔/等级分隔符的问题。
- 等等,详情请查看 GitHub 上的提交记录
重要提示: 正如你所见,这是一个“Alpha”版本。为了提升性能和整体玩家体验,我们将持续进行修改和改进。
贡献者
如果你想做出贡献,欢迎提交拉取请求,我们将相应地署名感谢!该插件主要是我个人用来提升 Java 技能的一个副业项目,但我也会尝试定期更新。
当前路线图(可能会变动)
- 实现更好的无效输入检测
- 优化和重构表达式解析器
- 提升性能
- 添加对比较语句的支持
- 添加对较旧 Minecraft 版本的向后兼容性
- 有趣的统计功能(硬性的“待定”)
法律声明
我不介意你使用该插件或其代码去制作你自己的东西,但你必须给我署名,并且你的项目必须采用 GPLv3 许可证授权,因为这就是 GPLv3 的规定。
故意无视许可证及其条款是个坏主意。三思而后行。之前的项目中曾出现过此类问题,这是无法容忍的。谢谢。
支持
如果你希望表达对那些古怪小插件的认可,最好的方式是分享给你的朋友,并通过在 GitHub 上提交 Issue 来帮助改进它们。
致谢
AdvancedHoppers 是 jwkerr 的 HopperFilter 插件的重写版(基于 0.3.1 分支)。这意味着该代码库遵循 GPLv3 许可证授权。相关的详细文档位于 /LICENSE 文件中。
AdvancedHoppers by courtega
Simplify hopper configurations and save on materials with this small, performant utility plugin! Filter expressions
follow a simple syntax that takes less than three minutes to learn.
What's different?
Here's the rundown of improvements AdvancedHoppers makes upon HopperFilter 0.3.1:
- Chat integration, making it a lot easier to see what you're doing
- Hoppers no longer clogged by excluded items
- Created a
config.toml, allowing server admins to easily make changes to functionality
- Created a
locale.toml to make dialog translatable into other languages
- Removed the arguably useless group separator and replaced it with an OR (
|) operator
- Code optimizations, reducing RAM consumption (in my basic testing ~20%; YMMV)
How do I use it?
There are two primary ways of setting a filter:
- Hold the item you want to filter for in your primary hand, then sneak and smack the hopper (
Shift + Left Click).
- With nothing in your hand, sneak and smack the hopper (
Shift + Left Click), then type in chat the filter expression
you want to set.
Recent changelog
1.0.0-alpha.3
Not too much new in this update.
- You can now
Shift + Left Click to rename hopper minecarts!
- Sound selection is now deferred to
config.toml!
- Migrated much of the codebase to Kotlin. Haven't decided if I like it this way or not.
- Some other minor features and changes
1.0.0-alpha.2
- Added a
config.toml, allowing administrators to change settings and functionality with ease.
- Added a
locale.toml! This lets servers targeting non-English-speaking player bases to easily translate dialogue into
their native tongue!
- Fixed a couple small bugs.
Notes: I've decided to go with TOML as the configuration format of choice because I personally find YAML disgusting. I
think that TOML is a fair balance between ease-of-use and structure.
1.0.0-alpha.1
- Added chat integration, notifying you when you're editing a filter expression, and notifying you when an edit was
cancelled.
- Items that aren't accepted by the filtered hopper will no longer clog it!
- Slight performance optimization (in my basic testing, RAM usage was reduced by 20%, but YMMV)
- Removed grouping separator and replaced it with an OR operator.
- Fixed enchantment/level delimitation issue by switching from
_ to a more intuitive :.
- Etc., etc., just check commits on GitHub
Important: As you can see, this is an "alpha" release. Changes will continue to be made to improve performance and
the overall player experience.
Contributors
If you'd like to contribute, feel free to make a pull request, and you will be credited accordingly! This plugin is
mainly a side project for me to improve my Java skills, but I will try to update things on a semi-regular basis.
Current roadmap (subject to change)
- Implement better checking for invalid input
- Optimize and refactor the expression parser
- Improve performance
- Add support for comparative statements
- Add backwards compatibility for older Minecraft versions
- Fun statistics features (a hard "maybe")
Blah, blah, legalese
I don't care if you use this plugin or its code to go make your own thing, but you must give me credit, and your project
must be licensed under GPLv3, because that's how GPLv3 works.
Purposeful ignorance of the license and its terms is a bad idea. Think before you do. This has been a problem with
previous projects and it will not be tolerated. Thank you.
Support
If you want to show your appreciation for the weird little plugins I work on, the best thing you can do is share them
with your friends and help to improve them by submitting issues to the issue tracker on GitHub.
Credits
AdvancedHoppers is a rewrite of jwkerr's HopperFilter plugin (forked from 0.3.1). That means this codebase is licensed under GPLv3. That fun
little document resides in /LICENSE.
评论 0
登录后参与评分
还没有评论,来抢沙发吧