Interface RegistryPredicate<T>

All Superinterfaces:
Predicate<net.minecraft.core.Holder<T>>
All Known Implementing Classes:
EntireRegistryPredicate, RegistryHolderPredicate, RegistryIDPredicate, RegistryNamespacePredicate, RegistryRegExpPredicate, RegistryTagIDPredicate, RegistryTagKeyPredicate
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RegistryPredicate<T> extends Predicate<net.minecraft.core.Holder<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<net.minecraft.core.Holder.Reference<T>>
    getHolders(net.minecraft.core.Registry<T> registry)
     
    default List<T>
    getValues(net.minecraft.core.Registry<T> registry)
     
    of(dev.latvian.mods.rhino.Context cx, Object from, dev.latvian.mods.rhino.type.TypeInfo target)
     

    Methods inherited from interface java.util.function.Predicate

    and, negate, or, test
  • Method Details

    • of

      static RegistryPredicate<?> of(dev.latvian.mods.rhino.Context cx, Object from, dev.latvian.mods.rhino.type.TypeInfo target)
    • getHolders

      default List<net.minecraft.core.Holder.Reference<T>> getHolders(net.minecraft.core.Registry<T> registry)
    • getValues

      default List<T> getValues(net.minecraft.core.Registry<T> registry)