Created
February 12, 2015 13:47
-
-
Save Alpvax/78f4a2c776fccb7ae19f to your computer and use it in GitHub Desktop.
Example mod (item would be registered as standard, and not rendered when equipped)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.minecraft.item.ItemArmor; | |
import net.minecraft.item.ItemStack; | |
/** | |
* @author Alpvax | |
* | |
*/ | |
public class ItemInvisArmour extends ItemArmor | |
{ | |
public ItemInvisArmour(ItemArmor.ArmorMaterial material, int renderIndex, int armorType) | |
{ | |
super(material, renderIndex, armorType); | |
} | |
public String getName() | |
{ | |
return "exampleArmour"; | |
} | |
@Override | |
public float getItemVisibility(ItemStack stack) | |
{ | |
return 0.0F;//Invisible to mobs | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment