ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemGeneric.java
2016-05-29 23:49:35 +02:00

31 lines
805 B
Java

/*
* This file ("ItemGeneric.java") is part of the Actually Additions mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
* http://ellpeck.de/actaddlicense
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
* © 2015-2016 Ellpeck
*/
package de.ellpeck.actuallyadditions.mod.items;
import de.ellpeck.actuallyadditions.mod.items.base.ItemBase;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemStack;
import javax.annotation.Nonnull;
public class ItemGeneric extends ItemBase{
public ItemGeneric(String name){
super(name);
this.setMaxDamage(0);
}
@Override
public EnumRarity getRarity(ItemStack stack){
return EnumRarity.UNCOMMON;
}
}