HomeJavaModsName Library
Name Library
!!This is not a plugin!!

This resource is not made, to download it and plug it just like that in your server, it's a simple library for ingame names! This resource is made for plugin developers!



Bukkit provides a huge variety of helpfull methods in their API, to program awesome plugins, that are capable of doing almost anything, but the Bukkit API is not perfect! One method, the Bukkit API does not provide, is a way to get the ingame name (the name shown in the tooltip in your ingame inventory) of an item/itemstack. With this class, you've got this method. You simply put this class in your project, add the package path on the top, and you are ready to use it with NameFix.getName(ItemStack). It returns a String, which contains everything the ingame name contains as well, which includes things such as the name of the entity, contained in a spawn egg, the color of a wool, glass or other colored item, the potion effect of potions and arrows and of course the different names for items with same IDs but different SubIDs. This list does not contain a name for every material in the Bukkit Material-class, due to some of them not beeing obtainable in your inventory, and thus not having a name given from the game in the first place, like for example the crop-block.


This was a lot of work to write, and if you appreciate this work, you can feel free to donate a dollar or two to my Patreon up there. Feel free to use this library in your plugins, but make shure to mention me in your credits at least.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Name Library is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 115 times (via Spigot). Download it and open it directly in the game.

Explore more