Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
ParallaxLib - The Core Library for Parallax Studios Mods
ParallaxLib is a shared library for all mods developed by Parallax Studios, designed to streamline development and enhance performance by centralizing essential features.
🌟 Why Use ParallaxLib?
🚀 Faster Development – Provides shared code, reducing redundancy across our mods.
🔗 Seamless Integration – Allows other Parallax Studios mods to work together seamlessly (coming soon!)
📦 Efficient Data Handling – Stores player stats like health, food, potion stats, and inventory for quick access by our mods.
📚 ItemIDGet Documentation 🛠️
Welcome to the ItemIDGet documentation! This utility class is your go-to tool for retrieving item IDs and namespace information in Minecraft mods. Whether you're working with an ItemStack or a plain item ID string, this class can help you get the information you need in no time. 🚀
✨ How to Use ItemIDGet ✨ To get started with ItemIDGet, you'll need to import it into your project. Don't worry, it's simple! Just add this at the top of your file:
import me.parallax.ItemIDGet;
🛠️ Methods Available 🛠️
- getId(ItemStack stack) 📜
Description: Get the full item ID for an ItemStack. Usage: Pass an ItemStack and get the item ID as a string. Example:
ItemStack stack = new ItemStack(Items.DIAMOND_SWORD);
String itemId = ItemIDGet.getId(stack);
System.out.println(itemId); // Output: minecraft:diamond_sword
- getNamespace(ItemStack stack) 🌐
Description: Get the namespace of the item from an ItemStack. Usage: Pass an ItemStack and get the namespace (like minecraft, modid, etc.). Example:
String namespace = ItemIDGet.getNamespace(stack);
System.out.println(namespace); // Output: minecraft
🔧 How to Check if a Mod is Loaded 🚀 If you want to check if a certain mod is loaded in the game, you can use the isModLoaded method.
isModLoaded(String modid) ⚙️
Description: Checks if a mod with the specified ID is loaded. Usage: Pass the mod ID as a string (e.g., "minecraft"). Example:
boolean isLoaded = ItemIDGet.isModLoaded("minecraft");
System.out.println(isLoaded); // Output: true or false
🔑 Key Notes Important: ItemIDGet is designed to work with direct Item IDs (ex. minecraft:diamond_block), but we've also added a method to handle ItemStacks. No need for ItemStack if you just have the string though. 🎉 If you're working with mods, you can also check if they're loaded with the isModLoaded() method! 🔍 🎉 Conclusion That's all! 🎉 ItemIDGet is a handy tool to simplify the process of retrieving item information in Minecraft mods. Whether you're working with ItemStack objects or just need a quick item ID lookup, this class has you covered. 🚀
Feel free to use this in your own mods, and let us know if you have any questions. Happy modding! 👾
If a Parallax Studios mod specifically lists ParallaxLib as a dependency or anywhere in its description, it means ParallaxLib is REQUIRED for that mod to operate.