Interface ICondition.IContext
- All Known Implementing Classes:
ConditionContext
- Enclosing interface:
ICondition
public static interface ICondition.IContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ICondition.IContextstatic final ICondition.IContext -
Method Summary
Modifier and TypeMethodDescriptiondefault FeatureFlagSetdefault <T> Collection<Holder<T>> Returns the contents of the requested tag as loaded from data packs, or an empty collection if the tag is not loaded.<T> booleanisTagLoaded(TagKey<T> key) Returnstrueif the requested tag is available.default RegistryAccessProvides access to the loaded registries if this context is used for a datapack reload.
-
Field Details
-
EMPTY
-
TAGS_INVALID
-
-
Method Details
-
isTagLoaded
Returnstrueif the requested tag is available. This method does not require that the loaded tag have any elements, only that it be present at all. -
getTag
Returns the contents of the requested tag as loaded from data packs, or an empty collection if the tag is not loaded. The returned holders are safe to inspect even though the tag has not yet been bound to its registry (i.e.Registry.PendingTags.apply()has not yet run). -
registryAccess
Provides access to the loaded registries if this context is used for a datapack reload.- Returns:
- The
RegistryAccesscontext for the currently active reload.
-
enabledFeatures
-