Class ConditionContext
java.lang.Object
net.neoforged.neoforge.common.conditions.ConditionContext
- All Implemented Interfaces:
ICondition.IContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Nullable Map
<ResourceKey<?>, Map<ResourceLocation, Collection<Holder<?>>>> private final TagManager
Fields inherited from interface net.neoforged.neoforge.common.conditions.ICondition.IContext
EMPTY, TAGS_INVALID
-
Constructor Summary
-
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.conditions.ICondition.IContext
getTag
-
Field Details
-
tagManager
-
loadedTags
@Nullable private @Nullable Map<ResourceKey<?>,Map<ResourceLocation, loadedTagsCollection<Holder<?>>>>
-
-
Constructor Details
-
ConditionContext
-
-
Method Details
-
getAllTags
public <T> Map<ResourceLocation,Collection<Holder<T>>> getAllTags(ResourceKey<? extends Registry<T>> registry) Description copied from interface:ICondition.IContext
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.- Specified by:
getAllTags
in interfaceICondition.IContext
-