Interface ILocalResearchFactory

All Superinterfaces:
IFactory<FactoryVoidInput,ILocalResearch>
All Known Implementing Classes:
LocalResearchFactory

public interface ILocalResearchFactory extends IFactory<FactoryVoidInput,ILocalResearch>
Interface for the IResearchFactory which is responsible for creating and maintaining Research objects.
  • Method Details

    • getNewInstance

      @NotNull default @NotNull ILocalResearch getNewInstance(@NotNull @NotNull IFactoryController factoryController, @NotNull @NotNull FactoryVoidInput token, @NotNull @NotNull Object... context)
      Description copied from interface: IFactory
      Method to get a new instance of the output given the input and additional context data.
      Specified by:
      getNewInstance in interface IFactory<FactoryVoidInput,ILocalResearch>
      Parameters:
      factoryController - The controller calling this factory method.
      token - The input to build a new output for.
      context - The context of the request.
      Returns:
      The new output instance for a given input.
    • getNewInstance

      @NotNull @NotNull ILocalResearch getNewInstance(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation branch, int depth)
      Method to get a new Instance of a Research.
      Parameters:
      id - the id.
      branch - the branch.
      depth - the depth.
      Returns:
      a new Instance of Research.