Rebar Registry
Represents a list of things that can be registered and looked up by NamespacedKey. This class is not thread safe and any concurrent access must be synchronized externally.
Type Parameters
T
the type of the registered values
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Maps a key to another key, allowing values to be looked up by either key. This is useful for updating keys without breaking existing references. For example, if an item is renamed from "addon:old_item" to "addon:new_item", you can map "addon:old_item" to "addon:new_item" so that both keys will return the same item.
Link copied to clipboard
Link copied to clipboard