Java Code Examples for baubles.api.BaubleType#BELT

The following examples show how to use baubles.api.BaubleType#BELT . 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 vote down vote up
@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: GTItemBaublesEnergyOrb.java    From GT-Classic with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
@Optional.Method(modid = "baubles")
public BaubleType getBaubleType(ItemStack itemStack) {
	return BaubleType.BELT;
}
 
Example 3
Source File: GTItemBaublesLithiumBattery.java    From GT-Classic with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
@Optional.Method(modid = "baubles")
public BaubleType getBaubleType(ItemStack itemStack) {
	return BaubleType.BELT;
}
 
Example 4
Source File: ItemPearlBelt.java    From Wizardry with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Nonnull
@Override
@Optional.Method(modid = "baubles")
public BaubleType getBaubleType(@NotNull ItemStack stack) {
	return BaubleType.BELT;
}