Skip to content

commonnet.kernelpanicsoft.archie.data.common.conditionsIAConditionIContext

IContext


interface IContext

Functions

getAllTags


abstract fun <T> getAllTags(registry: ResourceKey<out Registry<T>>): Map<ResourceLocation, Collection<Holder<T>>>

Return all the loaded tags for the passed registry, or an empty map if none is available. Note that the map and the tags are unmodifiable.

getRegistry


abstract fun <T> getRegistry(registry: ResourceKey<out Registry<T>>): Registry<T>

Return the Registry for the given registry key

getRegistryEntry


open fun <T> getRegistryEntry(key: ResourceKey<T>): T?

Return the registry entry for the specified ResourceKey


open fun <T> getRegistryEntry(registry: ResourceKey<out Registry<T>>, key: ResourceLocation): T?

Return the registry entry for the given ResourceLocation in the Registry specified by the registry key

getTag


open fun <T> getTag(key: TagKey<T>): Collection<Holder<T>>

Return the requested tag if available, or an empty tag otherwise.