NeoForgeCondition¶
class NeoForgeCondition(val condition: IACondition) : ICondition
Adapts an ArchieCondition to NeoForge's ICondition interface, delegating test to it and codec to the registered serializer.
Constructors¶
NeoForgeCondition¶
constructor(condition: IACondition)
Properties¶
archie¶
val ICondition.archie: IACondition
Unwraps a NeoForge ICondition back to its originating ArchieCondition. Throws if it wasn't created via neoforge.
condition¶
val condition: IACondition
Functions¶
codec¶
open override fun codec(): MapCodec<out ICondition>