protected override void Register()
        {
            FluidLoader.RegisterFluid(this);

            ModTypeLookup <BaseFluid> .Register(this);

            DisplayName = Mod.CreateTranslation("FluidName." + Name);
        }
        protected override void Register()
        {
            ModuleLoader.RegisterModule(this);

            ModTypeLookup <BaseModule> .Register(this);

            DisplayName = GetOrCreateTranslation.Invoke <ModTranslation>(Mod, $"Mods.{Mod.Name}.ModuleName.{Name}", false);
            Tooltip     = GetOrCreateTranslation.Invoke <ModTranslation>(Mod, $"Mods.{Mod.Name}.ModuleTooltip.{Name}", true);
        }
Exemple #3
0
        protected sealed override void Register()
        {
            ModTypeLookup <GlobalRecipe> .Register(this);

            RecipeHooks.Add(this);
        }
 protected sealed override void Register() => ModTypeLookup <DataTagGroup> .Register(this);