ItemNoGlintPotion.java 566 B

1234567891011121314151617181920
  1. package me.km.items;
  2. import net.minecraft.item.Item;
  3. import net.minecraft.item.ItemGroup;
  4. import net.minecraft.item.PotionItem;
  5. import net.minecraft.item.ItemStack;
  6. import net.minecraftforge.api.distmarker.Dist;
  7. import net.minecraftforge.api.distmarker.OnlyIn;
  8. public class ItemNoGlintPotion extends PotionItem {
  9. public ItemNoGlintPotion() {
  10. super(new Item.Properties().maxStackSize(16).group(ItemGroup.BREWING));
  11. }
  12. @OnlyIn(Dist.CLIENT)
  13. @Override
  14. public boolean hasEffect(ItemStack stack) {
  15. return stack.isEnchanted();
  16. }
  17. }