Interface ICondition.IContext

All Known Implementing Classes:
ConditionContext
Enclosing interface:
ICondition

public static interface ICondition.IContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ICondition.IContext
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getAllTags(ResourceKey<? extends Registry<T>> registry)
    Return all the loaded tags for the passed registry, or an empty map if none is available.
    default <T> Tag<Holder<T>>
    getTag(TagKey<T> key)
    Return the requested tag if available, or an empty tag otherwise.
  • Field Details

  • Method Details

    • getTag

      default <T> Tag<Holder<T>> getTag(TagKey<T> key)
      Return the requested tag if available, or an empty tag otherwise.
    • getAllTags

      <T> Map<ResourceLocation,Tag<Holder<T>>> getAllTags(ResourceKey<? extends Registry<T>> registry)
      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.