Interface RegisteredResource<T>

Type Parameters:
T - The type of the backing registry entry.
All Superinterfaces:
Resource, TypedInstance<T>
All Known Subinterfaces:
DataComponentHolderResource<T>
All Known Implementing Classes:
FluidResource, ItemResource

public interface RegisteredResource<T> extends Resource, TypedInstance<T>
Helper interface for resources backed by a registry entry.
  • Method Details

    • value

      T value()
      Returns the backing instance of the resource.
      Returns:
      the backing instance of the resource
    • is

      @NonExtendable default boolean is(Predicate<Holder<T>> predicate)
      Parameters:
      predicate - The predicate to perform the test.
      Returns:
      true if the predicate's test returns true for the holder from TypedInstance.typeHolder().