Interface IReplacerRegistry
- All Known Implementing Classes:
ReplacerRegistry
public interface IReplacerRegistry
Holds all registries related specifically to
Replacers.
An instance of this class can be obtained with ICraftTweakerRegistry.
- Since:
- 10.0.0
-
Method Summary
Modifier and TypeMethodDescriptionCollection<net.minecraft.resources.ResourceLocation> Gets aCollectionwith all ids used to identify knownITargetingStrategy.filters()Gets aCollectionof all global filters registered.findStrategy(net.minecraft.resources.ResourceLocation id) Finds theITargetingStrategywith the given id, if available.
-
Method Details
-
filters
Collection<ITargetingFilter> filters()Gets aCollectionof all global filters registered.- Returns:
- A collection of global filters.
- Since:
- 10.0.0
-
findStrategy
Finds 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.
- Parameters:
id- The id uniquely identifying the targeting strategy.- Returns:
- The targeting strategy with the given id.
- Throws:
NullPointerException- If no strategy with the given id has been registered.- Since:
- 10.0.0
-
allStrategyNames
Collection<net.minecraft.resources.ResourceLocation> allStrategyNames()Gets aCollectionwith all ids used to identify knownITargetingStrategy.- Returns:
- A collection of names.
- Since:
- 10.0.0
-