Temporal API

⭐ — (8 endorsements) 📥 149,037 downloads 📌 v1.6.6 📅 2/22/2024
⚪ Last updated 2024

By CyberRat2 · forge

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 6/30/2024 📅 Created: 2/22/2024
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 👍 0.0% endorsement rate
  • 🏆 #250 of 403 forge mods in this game by downloads

📋 About This Mod

Temporal API is the official library for the Team Temporal mods other projects and modders and modpack creators may use it for their projects as much as they like.

The main goal of this mod is to make creating mods easier and more flexible!

For working with our library you need to go to build.gradle and add this:

``` repositories { maven { url "https://cursemaven.com" } }

dependencies { implementation fg.deobf("curse.maven:temporalapi-970291:") ... } ```

You need to replace with file id that can be found in the end of link of needed version of the mod file.

The library for current state adds

factories, tag utils, creative tab utils, trading with villagers and wanderers customizer, world features utils, item properties utils, fov modifier etc Factory and Extensions Factories are used to create RegistryObject objects and make their creation a lot easier.

For using ItemFactory from API you need to create ItemFactoryFacade class like here:

``` public class ModItemFactoryFacade extends ItemFactory { public ModItemFactoryFacade() { super(ModItems. ITEMS); } } ```

Also you can extend your Factory Facade with Extensions from API or create your own Extension.

Here are 2 examples of using SwordExtension (with this Extension creating of Sword becomes a lot easier):

``` public class ModItemFactoryFacade extends ItemFactory implements SwordExtension { public ModItemFactoryFacade() { super(ModItems. ITEMS); } } ``` Or like this: ``` public class ModItemFactoryFacade extends ItemFactory implements SwordExtension { public ModItemFactoryFacade() { super(ModItems. ITEMS); }

public RegistryObject createSword(String name, Object... args) { return SwordExtension.super.createSword(name, this, args); }

public RegistryObject createSword(String name, Supplier tTypedSupplier) { return SwordExtension.super.createSword(name, this, tTypedSupplier); } } ```

So what about creating our object using this Facade class: ``` public class ModItems { public static final DeferredRegister ITEMS = DeferredRegister.create(Registries. ITEM, "MOD_ID"); public static final ModItemFactoryFacade ITEM_FACTORY = new ModItemFactoryFacade();

public static final RegistryObject MY_ITEM_1 = ITEM_FACTORY.create("my_item_1"); public static final RegistryObject MY_ITEM_2 = ITEM_FACTORY.create("my_item_2", new Item. Properties()); public static final RegistryObject MY_ITEM_3 = ITEM_FACTORY.create("my_item_3", () -> new Item(new Item. Properties()));

//First example of creating Facade object from up public static final RegistryObject MY_SWORD_1 = ITEM_FACTORY.createSword("my_sword_1", ITEM_FACTORY, Tiers. STONE, 3, -2. 4F); public static final RegistryObject MY_SWORD_2 = ITEM_FACTORY.createSword("my_sword_2", ITEM_FACTORY, () -> new SwordItem(Tiers. STONE, 3, -2. 4F, new Item. Properties()));

//Second example of creating Facade object from up public static final RegistryObject MY_SWORD_3 = ITEM_FACTORY.createSword("my_sword_3", Tiers. STONE, 3, -2. 4F); public static final RegistryObject MY_SWORD_4 = ITEM_FACTORY.createSword("my_sword_4", () -> new SwordItem(Tiers. STONE, 3, -2. 4F, new Item. Properties())); } ``` Now lets's look on args... array. It is an array of arguments for creating an object (Will be changed in future for better readability).

Currently available Factories and extensions: ``` ItemFactory (ArrowExtension, BowExtension, BowlExtension, MusicDiscExtension, SmithingTemplateExtension, SwordExtension, AxeExtension, PickaxeExtension, ShovelExtension, HoeExtension) BlockFactory (BushExtension, FlowerExtension, PottedFlowerExtension) ParticleFactory EffectFactory PaintingFactory PotionFactory SoundEventFactory CreativeTabFactory EntityFactory Tag Utils Tag utils focus on tag creating and making using tags easier. ``` For example if you want to create item tag you need to use ItemTagFactory: ``` public class MyItemTags { public static final TagFactory TAG_FACTORY = new ItemTagFactory("MY_MOD_ID");

public static final TagKey MY_TAG = TAG_FACTORY.createTag("my_tag"); } Creative Tab Utils Creative tab utils are used to add items to Creative Tab that you need. ``` Firstly we need to go to our class that subscribed for mod events and add this function (inner part of method is just example): ``` @SubscribeEvent public void addCreativeTabs(BuildCreativeModeTabContentsEvent event) { new SimpleTabAdder(event) .addAllToTab(CreativeModeTabs. INGREDIENTS, ModItems. MY_ITEM_1, ModItems. MY_ITEM_2, ModItems. MY_ITEM_3) .addAllToTab(CreativeModeTabs. COMBAT, ModItems. MY_SWORD_1, ModItems. MY_SWORD_2, ModItems. MY_SWORD_3); } ``` Trading with Villagers and Wanderers Utils TemporalAPI makes trading

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
CyberRat2
Version
1.6.6
Downloads
149,037
Endorsements
8
Category
forge
Created
2/22/2024
Updated
6/30/2024
Game Versions
1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5
Tags
library

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does Temporal API support?

The author lists 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6. Other versions may work but are untested by the author.

What is the latest version of Temporal API?

Version 1.6.6, published 2024-06-30 with 149,037 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More forge 👤 More by CyberRat2 🔎 Similar Mods 🌐 Best forge (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods