Class ReplacerRegistry
java.lang.Object
com.blamejared.crafttweaker.impl.recipe.replacement.ReplacerRegistry
- All Implemented Interfaces:
IReplacerRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<net.minecraft.resources.ResourceLocation>Gets aCollectionwith all ids used to identify knownITargetingStrategy.voidcastedFilters(Collection<ITargetingFilter> filters) filters()Gets aCollectionof all global filters registered.findStrategy(net.minecraft.resources.ResourceLocation id) Finds theITargetingStrategywith the given id, if available.voidstrategy(net.minecraft.resources.ResourceLocation id, ITargetingStrategy strategy)
-
Constructor Details
-
ReplacerRegistry
public ReplacerRegistry()
-
-
Method Details
-
castedFilters
-
strategy
-
filters
Description copied from interface:IReplacerRegistryGets aCollectionof all global filters registered.- Specified by:
filtersin interfaceIReplacerRegistry- Returns:
- A collection of global filters.
-
findStrategy
Description copied from interface:IReplacerRegistryFinds theITargetingStrategywith the given id, if available.It is illegal to invoke this method before this registry has been built: doing so will result in undefined behavior.
- Specified by:
findStrategyin interfaceIReplacerRegistry- Parameters:
id- The id uniquely identifying the targeting strategy.- Returns:
- The targeting strategy with the given id.
-
allStrategyNames
Description copied from interface:IReplacerRegistryGets aCollectionwith all ids used to identify knownITargetingStrategy.- Specified by:
allStrategyNamesin interfaceIReplacerRegistry- Returns:
- A collection of names.
-