Java Code Examples for net.minecraft.item.EnumRarity#COMMON

The following examples show how to use net.minecraft.item.EnumRarity#COMMON . 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: GTItemEnergyPack.java    From GT-Classic with GNU Lesser General Public License v3.0 5 votes vote down vote up
public GTItemEnergyPack(int index, String tex, int max, String reg, String unl, int lvl, int limit) {
	super(index, EntityEquipmentSlot.CHEST);
	this.indexitem = index;
	this.setMaxDamage(0);
	this.texture = tex;
	this.maxEnergy = max;
	this.setRegistryName(reg);
	this.setUnlocalizedName(GTMod.MODID + unl);
	this.setCreativeTab(GTMod.creativeTabGT);
	this.tier = lvl; // 1;
	this.transferlimit = limit;
	this.rare = EnumRarity.COMMON;
}
 
Example 2
Source File: ItemSyringe.java    From Wizardry with GNU Lesser General Public License v3.0 5 votes vote down vote up
@NotNull
@Override
public EnumRarity getRarity(ItemStack stack) {
	switch(stack.getItemDamage()) {
		case 1:
			return EnumRarity.UNCOMMON;

		case 2:
			return EnumRarity.RARE;

		default:
			return EnumRarity.COMMON;
	}
}
 
Example 3
Source File: ItemAnninApple.java    From TofuCraftReload with MIT License 4 votes vote down vote up
@Override
public EnumRarity getRarity(ItemStack stack) {
    return EnumRarity.COMMON;
}
 
Example 4
Source File: ItemTofuCore.java    From TofuCraftReload with MIT License 4 votes vote down vote up
@Override
public EnumRarity getRarity(ItemStack stack) {
    return EnumRarity.COMMON;
}
 
Example 5
Source File: ItemTofuForceSword.java    From TofuCraftReload with MIT License 4 votes vote down vote up
@Override
public EnumRarity getRarity(ItemStack stack) {
    return EnumRarity.COMMON;
}