Class ConditionContext
java.lang.Object
net.minecraftforge.common.crafting.conditions.ConditionContext
- All Implemented Interfaces:
ICondition.IContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<ResourceKey<?>,Map<ResourceLocation, Collection<Holder<?>>>> private final TagManagerFields inherited from interface net.minecraftforge.common.crafting.conditions.ICondition.IContext
EMPTY, TAGS_INVALID -
Constructor Summary
Constructors -
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, waitMethods 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.IContextReturn 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:
getAllTagsin interfaceICondition.IContext
-