It's not possible by normal means. And by normal means, of course, I mean the standard method for items.
public boolean hasEffect(ItemStack par1ItemStack){
return true;
}
However, this wouldn't work on blocks. What you could do is take Block.java, copy/paste into a new class and edit it to have the hasEffect boolean, and have your block extend the new block class.
Hmm , do you want the block to shimmer in world or just in your inventory?
If you want it in world you cant
but if you want the block in the inventory to have the effect just create your own ItemBlock for it... After that register it in your main class (GameRegistry.registerBlock(Block block , class<? extends ItemBlock>))
In your ItemBlock class you can add the method for the effect (hasEffect)
However, this wouldn't work on blocks. What you could do is take Block.java, copy/paste into a new class and edit it to have the hasEffect boolean, and have your block extend the new block class.
Messing with that should work.
Instead, take the existing one.
If you want it in world you cant
but if you want the block in the inventory to have the effect just create your own ItemBlock for it... After that register it in your main class (GameRegistry.registerBlock(Block block , class<? extends ItemBlock>))
In your ItemBlock class you can add the method for the effect (hasEffect)
I thought you meant that you wanted the actual block in the world to shimmer. Glad it got worked out.