Java Code Examples for baubles.api.BaubleType#RING
The following examples show how to use
baubles.api.BaubleType#RING .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ItemArtifact.java From Artifacts with MIT License | 6 votes |
@Override public BaubleType getBaubleType(ItemStack itemStack) { if(itemStack.stackTagCompound != null) { String type = itemStack.stackTagCompound.getString("iconName"); if(type.equals("Ring")) return BaubleType.RING; if(type.equals("Amulet")) return BaubleType.AMULET; if(type.equals("Belt")) return BaubleType.BELT; } return null; }
Example 2
Source File: ItemBaseBaubles.java From Electro-Magic-Tools with GNU General Public License v3.0 | 5 votes |
@Override public BaubleType getBaubleType(ItemStack stack) { if (stack.getItemDamage() <= 0) { return BaubleType.RING; } else { return null; } }
Example 3
Source File: ItemIC2Baubles.java From Electro-Magic-Tools with GNU General Public License v3.0 | 5 votes |
@Override public BaubleType getBaubleType(ItemStack stack) { if (stack.getItemDamage() <= 1) { return BaubleType.RING; } else { return null; } }
Example 4
Source File: WitherProtectionRing.java From NewHorizonsCoreMod with GNU General Public License v3.0 | 4 votes |
@Override public BaubleType getBaubleType(ItemStack arg0) { return BaubleType.RING; }
Example 5
Source File: OvenGlove.java From NewHorizonsCoreMod with GNU General Public License v3.0 | 4 votes |
@Override public BaubleType getBaubleType( ItemStack arg0 ) { return BaubleType.RING; }
Example 6
Source File: ItemRingNutrition.java From ForbiddenMagic with Do What The F*ck You Want To Public License | 4 votes |
public BaubleType getBaubleType(ItemStack itemstack){ return BaubleType.RING; }