promotional bannermobile promotional banner

MaterialIdLib

Abandoned
This is a libary to get Materials by IDs or IDs by Materials

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>

The MaterialIdLib Team

profile avatar
  • 4
    Projects
  • 22.7K
    Downloads

More from _ForgeUser9888904

  • InternalPluginManager (Bukkit) project image

    InternalPluginManager (Bukkit)

    • 624
    • Bukkit Plugins

    The InternalPluginManager is a facade for Minecraft server mods to provide cross-platform plugin comptaibility.

    • 624
    • January 2, 2015
    • Bukkit Plugins
    • +2
  • RichAutoMessage project image

    RichAutoMessage

    • 20.3K
    • Bukkit Plugins

    AutoMessage - The automatic messager

    • 20.3K
    • September 6, 2013
    • Bukkit Plugins
    • +1
  • SelfMadeRegion project image

    SelfMadeRegion

    • 1.1K
    • Bukkit Plugins

    This plugin allows users to create their own regions/plots (you can deceremnt your ToDo-List).)

    • 1.1K
    • October 20, 2013
    • Bukkit Plugins
    • +2
  • InternalPluginManager (Bukkit) project image

    InternalPluginManager (Bukkit)

    • 624
    • Bukkit Plugins

    The InternalPluginManager is a facade for Minecraft server mods to provide cross-platform plugin comptaibility.

    • 624
    • January 2, 2015
    • Bukkit Plugins
    • +2
  • RichAutoMessage project image

    RichAutoMessage

    • 20.3K
    • Bukkit Plugins

    AutoMessage - The automatic messager

    • 20.3K
    • September 6, 2013
    • Bukkit Plugins
    • +1
  • SelfMadeRegion project image

    SelfMadeRegion

    • 1.1K
    • Bukkit Plugins

    This plugin allows users to create their own regions/plots (you can deceremnt your ToDo-List).)

    • 1.1K
    • October 20, 2013
    • Bukkit Plugins
    • +2