MaterialIdLib

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

Abandoned

This project is abandoned, because it is no longer save to get materials by IDs. Please use material names instead.


MaterialIdLib is an linkage between Materials (org.bukkit.Material) and IDs (java.lang.Integer). So you can get a Material by an ID and the other way. So you don't have to use the deprecated methods from Bukkit.

Permissions:

  • materialidlib.warn
    • Anyone with this permission will be notified when MaterialIdLib is incompatible with the bukkit that the server is running on

JavaDoc: http://docs.blockhaus2000.com/materialidlib

GitHub (Source Code): https://github.com/Blockhaus2000/MaterialIdLib


Use MaterialIdLib

NOTICE: Don't forget to add softdepend: [MaterialidLib] or depend: [MaterialIdLib] to your plugin.yml

NOTICE: See JavaDoc Source at GitHub (https://github.com/Blockhaus2000/MaterialIdLib) for return types or anything else

// Get a Material by an ID
MaterialIdLib.getMaterialById(int id);

// Get an ID by a Material
MaterialIdLib.getIdByMaterial(Material mat);

// Get available Materials
MaterialIdLib.getAvailableMaterials();

// Get available IDs
MaterialIdLib.getAvailableIds();

// Get the whole Material - ID linkage
MaterialIdLib.getMaterialIdLinkage();

Information for Maven Projects

<repository>
    <id>blockhaus2000-repo</id>
    <url>http://repo.blockhaus2000.com/</url>
</repository>

...

<dependency>
    <groupId>com.blockhaus2000</groupId>
    <artifactId>materialidlib</artifactId>
    <version>See GitHub</version>
    <packaging>jar</packaging>
</dependency>


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Recent Files