Class ConditionContext
java.lang.Object
net.minecraftforge.common.crafting.conditions.ConditionContext
- All Implemented Interfaces:
ICondition.IContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate Map<ResourceKey<?>,
Map<ResourceLocation, Collection<Holder<?>>>> private final TagManager
Fields inherited from interface net.minecraftforge.common.crafting.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.minecraftforge.common.crafting.conditions.ICondition.IContext
getTag
-
Field Details
-
tagManager
-
loadedTags
-
-
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
-