public static ResourceLocation GetFunctionPath(Namespace ns, CommandWrapper.Function f) { return(GetFunctionPath(ns, f, f.Method.DeclaringType)); }
public void RunFunction(Advancement a, Namespace ns, CommandWrapper.Function f) { a.Reward = Reward.Function(ns, f); Create(a); }
public static Reward Function(Namespace ns, CommandWrapper.Function f) { return(new Reward("function", FunctionWriter.GetFunctionPath(ns, f))); }