TL;DR:自 Minecraft 26.1 起,NeoForged 团队已正式弃用 (Neo)Forge Fluid API……并直接将其替换为“无”。本模组是由社区从零开始重新实现的该 API,旨在让添加流体的过程像过去一样轻松(且无冲突)。目前仍在开发中。
如果你不知道这意味着什么,或者想要了解更多细节,请看下面的详细说明:
你是否曾疑惑为什么实体能像流体不存在一样穿过你的流体?为什么你设置了发光、推挤、改变怪物寻路路径、在流体中使导管工作等功能,但它们在 FluidType 类中明明已经配置好了却不起作用?这是因为 (Neo)Forge Fluid API 已被停用——自 MC 26.1 起,Neo 不再自带其实现*。如果你希望你的流体能够“开箱即用”,你需要一个能够接管该 API 并使游戏真正响应的东西。这正是本 API 的作用所在——它是一个(大致上)即插即用的旧 Forge 实现的替代品,由社区成员为 MC 26.1.2 从零编写!
它做了一些更改,并扩展了旧功能:
isWaterLike 现已废弃。取而代之的是,引入了多种更针对性的方法
- 你现在必须对流体进行标记(回退行为会替代为水,但复用原版标签会导致大部分 Fluid API 被忽略)
- 以下方法已被修补加入:
#getTag、#reducesMiningSpeed、#canSpawnAquaticMobs、#canFish、#getFishingLootTableKey、#entityCanStandOn、#shouldSplash、#createSplashParticleOnClient、#createSplashParticleOnServer、#createWakeParticleOnServer、#makesWet、#hasUnderWaterMusic、#conduitCompatible、#slowsProjectiles、#getInertia、#triggersRipTide、#preventsBurning、#affectsVehicle
- 为了方便起见,提供了无色和可着色的原版溅射与唤醒粒子版本(默认情况下,这些粒子会根据你的流体颜色着色,并替代原版对应粒子)
文档仍在完善中;在此期间,请参阅社区维护的旧 (Neo)Forge API 文档:
*严格来说,_大部分_旧 API 已不再实现,NeoForged 团队计划继续逐步淘汰其余部分。
TL;DR: As of Minecraft 26.1, the NeoForged team has officially retired the (Neo)Forge Fluid API... and replaced it with nothing. This mod is a community-developed, from-scratch reimplemention of that API designed to make adding fluids as painless (and collision-free) as it used to be. WIP.
If you don't know what that means, or want some details, here's the longer version:
Wonder why entities are walking through your fluids like they aren't there? Why your fluids don't glow when you tell `em to, they don't push you around, they make mobs path weird, conduits don't work in `em, etc., even though you set everything up in your FluidType class? That's because the (Neo)Forge Fluid API has been discontinued - as of MC 26.1, Neo no longer ships with an implementation*. If you want your fluids to "just work", you're going need something that takes that API and makes the game actually pay attention to it. That's where this API comes in—it's a (more-or-less) drag-`n-drop replacement for the old Forge implementation, written from scratch by community members for MC 26.1.2!
It does make a few changes, and extend on the old functionality:
isWaterLike is now deprecated. Instead, a variety of more targeted methods have been patched in
- You are now required to tag your fluids (the fallback behavior substitutes water, but reusing a vanilla tag causes most of the Fluid API to be ignored)
- The following methods have been patched in:
#getTag, #reducesMiningSpeed, #canSpawnAquaticMobs, #canFish, #getFishingLootTableKey, #entityCanStandOn, #shouldSplash, #createSplashParticleOnClient, #createSplashParticleOnServer, #createWakeParticleOnServer, #makesWet, #hasUnderWaterMusic, #conduitCompatible, #slowsProjectiles, #getInertia, #triggersRipTide, #preventsBurning, #affectsVehicle
- For convenience, colorless, tintable versions of the vanilla splash and wake particles have been provided (by default, these are tinted the same color as your fluid and substituted for their vanilla counterparts)
Documentation is a work in progress; in the meantime, see the community-maintained documentation for the old (Neo)Forge API:
*Well, most of the old API is no longer implemented, and the NeoForged team plans to continue phasing out the rest.
评论 0
登录后参与评分
还没有评论,来抢沙发吧