void trigger(ServerPlayer player, Enchantment enchantment, ItemStack itemStack, Predicate
performancePredicate) { + public
void trigger(ServerPlayer player, Enchantment enchantment, ItemStack itemStack, Predicate
performancePredicate) { this.trigger(player, (instance) -> ((TriggerInstance
) instance).matches(enchantment, itemStack, performancePredicate));
}
@@ -52,15 +52,15 @@ public Codec Criterion Criterion performance
) {
- return HECriteriaTriggers.ENCHANTMENT_PERFORMED.get().createCriterion(
+ return HLCriteriaTriggers.ENCHANTMENT_PERFORMED.get().createCriterion(
new EnchantmentPerformedTrigger.TriggerInstance<>(player, enchantment, item, performance)
);
}
- public static Criterion Criterion Criterion (
Optional