EngineHub / EngineHub/CommandHelper
all_tile_entities() and tile_entity_type addition?
- 主要语言
- Java
- 星标
- 128
- 派生
- 70
- PR 合并指标
- 30 天内没有已合并 PR
描述
CMDHELPER-3146 - Reported by Raven0
Any possibility for these to be added, at least just for grabbing info? Better than to scan full chunk to see if X tile entity(like spawner,dispenser, dropper etc) is in it.
Should function same as all_entities() and entity_type() functions, only you would get list of tile entities in the first one, and by using it's ID(if all_tile_entities() would return that), you get it's type in other function.
getTileEntities() method already exists in spigot API, but not really sure about others.
Related spigot libraries:
Chunk: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Chunk.html
BlockState: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/BlockState.html
贡献指南
调研方向
首先阅读现有的 all_entities() 和 entity_type() 函数,然后检查所引用的 Spigot Chunk.getTileEntities() 和 BlockState API。在实现类似函数之前,明确 tile-entity ID 和类型应如何表示;当行为已定义并由相关项目测试覆盖时即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- game-dev
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100