AConditionsPlatform¶
expect object AConditionsPlatform
Cross-loader hooks that plug IACondition into each loader's native datapack condition system, since Fabric and NeoForge each have their own recipe/tag condition machinery.
Datagen-only condition plumbing (attaching a condition to a generated recipe) lives separately in archie-datagen's ADatagenConditionsPlatform, since it needs no runtime presence.
Functions¶
codec¶
expect fun codec(): Codec<IACondition>
The dispatch codec decoding any registered IACondition; backs IACondition.CODEC.
register¶
expect fun register(identifier: ResourceLocation, codec: MapCodec<out IACondition>)
Registers condition type keyed by identifier, decodable with codec; backs IACondition.register.