Interface ICondition.IContext
- All Known Implementing Classes:
ConditionContext
- Enclosing interface:
- ICondition
public static interface ICondition.IContext
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ICondition.IContext
static final ICondition.IContext
-
Method Summary
Modifier and TypeMethodDescription<T> Map<ResourceLocation,
Collection<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.default <T> Collection<Holder<T>>
Return the requested tag if available, or an empty tag otherwise.
-
Field Details
-
EMPTY
-
TAGS_INVALID
-
-
Method Details
-
getTag
Return the requested tag if available, or an empty tag otherwise. -
getAllTags
<T> Map<ResourceLocation,Collection<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.
-