fix: Armor predicates not being loaded correctly

This commit is contained in:
Linnea Gräf
2025-05-02 17:42:26 +02:00
parent 36b21d0b04
commit b98272c364

View File

@@ -1,8 +1,10 @@
package moe.nea.firmament.features.texturepack
import kotlinx.serialization.Serializable
import net.minecraft.entity.LivingEntity
import net.minecraft.item.ItemStack
@Serializable(with = FirmamentRootPredicateSerializer::class)
interface FirmamentModelPredicate {
fun test(stack: ItemStack, holder: LivingEntity?): Boolean = test(stack)
fun test(stack: ItemStack): Boolean = test(stack, null)