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
Helper interface for resources backed by a registry entry.
-
Method Summary
Methods inherited from interface TypedInstance
is, is, is, is, is, tags, typeHolder
-
Method Details
-
value
T value()Returns the backing instance of the resource.- Returns:
- the backing instance of the resource
-
is
- Parameters:
predicate- The predicate to perform the test.- Returns:
trueif the predicate's test returnstruefor the holder fromTypedInstance.typeHolder().
-