RelocationFMP

[!INFO] Git Commit: 49a810b | Updated: 2024-06-28

modid:RelocationFMP(注意大写,来自 mod.scala:26 final val modID = "RelocationFMP")

为 ForgeRelocation 增加 ForgeMultipart(FMP) 支持的 小型 Scala 库 mod。本 mod 不提供任何方块、物品或实体,只做两件事:向 ForgeRelocation 注册一个 搬运 FMP 区块的移动器,以及在 FMP 格子里渲染/拾取 MCFrames 框架。

  • 语言:Scala(@Mod(modLanguage = "scala"),mod.scala:19)
  • 适用版本:acceptedMinecraftVersions = "[1.7.10]"(mod.scala:20)
  • 依赖:required-after:ForgeRelocation;required-after:ForgeMultipart(mod.scala:21)
  • 无配置文件(grep -rn "IConfig\|Config" src/main/scala → 0 命中)

方块 / 部件列表

游戏设定 / 机制列表

本 mod 没有的内容(源码核实)

维度 结论 证据(全 src/main/scala grep)
方块 / 物品 无 registerBlock、registerItem 各 0 命中;无 extends Block/Item 类声明
自有物品 无 掉落与拾取物均取自 MCFrames 的 MCFramesAPI.getFrameBlock(framefmp.scala:61-64)
实体 / TileEntity 无 registerEntity、registerTileEntity 各 0 命中
合成配方 无 GameRegistry.addRecipe 0 命中
指令 无 addCommand、addChatCommand 各 0 命中
热键 无 keyBinding 0 命中
附魔 无 Enchantment 0 命中
群系 无 BiomeGen 0 命中
维度 无 WorldProvider 0 命中
Buff/Debuff 无 Potion 0 命中;Effect 唯一命中是 CodeChickenLib 的 TIconHitEffects(framefmp.scala:34)
成就 无 Achievement、addEntityAchievement 各 0 命中
多方块结构 无 本 mod 不定义结构;rfmp_frame 是单格部件

已知源码问题

  • 未声明 MCFrames 依赖:源码在 preInit 直接调用 MCFramesAPI.instance.registerFramePlacement 并 import mrtjp.mcframes.api.*(proxies.scala:10、proxies.scala:15), 但 @Mod(dependencies = ...) 只列了 ForgeRelocation 与 ForgeMultipart(mod.scala:21), dependencies.gradle 也没有 MCFrames 依赖项。MCFrames 缺失时无前置检查。
  • 没有使用 @SidedProxy:mod.scala:33-45 直接调用单例 RelocationFMPProxy, 而该单例继承的是 client 类(proxies.scala:44)。目前 client 类体只有 super 调用 (proxies.scala:33-42)所以未炸,但客户端/服务端并未真正分离。