base mod created
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package net.minecraft.item;
|
||||
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public class ItemSimpleFoiled extends Item
|
||||
{
|
||||
/**
|
||||
* Returns true if this item has an enchantment glint. By default, this returns
|
||||
* <code>stack.isItemEnchanted()</code>, but other items can override it (for instance, written books always return
|
||||
* true).
|
||||
*
|
||||
* Note that if you override this method, you generally want to also call the super version (on {@link Item}) to get
|
||||
* the glint for enchanted items. Of course, that is unnecessary if the overwritten version always returns true.
|
||||
*/
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean hasEffect(ItemStack stack)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user