package net.minecraft.world.entity.ai.village.poi;

import java.util.Set;
import java.util.function.Predicate;
import net.minecraft.core.Holder;
import net.minecraft.world.level.block.state.BlockState;

public record PoiType(Set<BlockState> matchingStates, int maxTickets, int validRange) {
   public static final Predicate<Holder<PoiType>> NONE = (p_218041_) -> {
      return false;
   };

   public PoiType {
      matchingStates = Set.copyOf(matchingStates);
   }

   public boolean is(BlockState p_148693_) {
      return this.matchingStates.contains(p_148693_);
   }
}