From 40a6e80fa8c1461d772d959cf874456806a7e741 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 21 Nov 2018 12:19:43 +0100 Subject: [PATCH] added glowing to spirit thing --- .../ellpeck/naturesaura/items/ItemGlowing.java | 17 +++++++++++++++++ .../de/ellpeck/naturesaura/items/ModItems.java | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/main/java/de/ellpeck/naturesaura/items/ItemGlowing.java diff --git a/src/main/java/de/ellpeck/naturesaura/items/ItemGlowing.java b/src/main/java/de/ellpeck/naturesaura/items/ItemGlowing.java new file mode 100644 index 00000000..cc63b431 --- /dev/null +++ b/src/main/java/de/ellpeck/naturesaura/items/ItemGlowing.java @@ -0,0 +1,17 @@ +package de.ellpeck.naturesaura.items; + +import net.minecraft.item.ItemStack; +import net.minecraftforge.fml.relauncher.Side; +import net.minecraftforge.fml.relauncher.SideOnly; + +public class ItemGlowing extends ItemImpl { + public ItemGlowing(String baseName) { + super(baseName); + } + + @Override + @SideOnly(Side.CLIENT) + public boolean hasEffect(ItemStack stack) { + return true; + } +} diff --git a/src/main/java/de/ellpeck/naturesaura/items/ModItems.java b/src/main/java/de/ellpeck/naturesaura/items/ModItems.java index 32000e4c..fe6503d7 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/ModItems.java +++ b/src/main/java/de/ellpeck/naturesaura/items/ModItems.java @@ -30,5 +30,5 @@ public final class ModItems { public static final Item AURA_BOTTLE = new ItemAuraBottle(); public static final Item FARMING_STENCIL = new ItemImpl("farming_stencil"); public static final Item SKY_INGOT = new ItemImpl("sky_ingot"); - public static final Item CALLING_SPIRIT = new ItemImpl("calling_spirit"); + public static final Item CALLING_SPIRIT = new ItemGlowing("calling_spirit"); }