记录类 PotionsPredicate

java.lang.Object
java.lang.Record
net.minecraft.core.component.predicates.PotionsPredicate
所有已实现的接口:
SingleComponentItemPredicate<PotionContents>, DataComponentPredicate

public record PotionsPredicate(HolderSet<Potion> potions) extends Record implements SingleComponentItemPredicate<PotionContents>
  • 字段详细资料

    • potions

      private final HolderSet<Potion> potions
      potions 记录组件的字段。
    • CODEC

      public static final com.mojang.serialization.Codec<PotionsPredicate> CODEC
  • 构造器详细资料

    • PotionsPredicate

      public PotionsPredicate(HolderSet<Potion> potions)
      创建 PotionsPredicate 记录类的实例。
      参数:
      potions - potions 记录组件的值
  • 方法详细资料