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 Details

    • filters

      Gets a Collection of all global filters registered.
      Returns:
      A collection of global filters.
      Since:
      10.0.0
    • findStrategy

      ITargetingStrategy findStrategy(net.minecraft.resources.ResourceLocation id)
      Finds the ITargetingStrategy with 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 a Collection with all ids used to identify known ITargetingStrategy.
      Returns:
      A collection of names.
      Since:
      10.0.0