21 lines
761 B
Java
21 lines
761 B
Java
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;
|
|
}
|
|
} |