- Type Parameters:
T- the type of thing we're holding onto
- All Superinterfaces:
- All Known Implementing Classes:
public interface IRegistryDelegate<T> extends Supplier<T>
A registry delegate for holding references to items or blocks These should be safe to use in things like lists though aliased items and blocks will not have object identity with respect to their delegate.
getT get()Get the referent pointed at by this delegate. This will be the currently active item or block, and will change as world saves come and go. Note that item.delegate.get() may NOT be the same object as item, due to item and block substitution.
nameResourceLocation name()Get the unique resource location for this delegate. Completely static after registration has completed, and will never change.
- The name
typeGet the delegate type. It will be dependent on the registry this delegate is sourced from.
- The type of delegate