Add item tag 'beacon_payment' for items that can activate a beacon (#6328)

This commit is contained in:
bl4ckscor3 authored and LexManos committed 2019-12-02 14:52:45 -08:00
1 parent 68b0075fe6
commit 4dd32d6f72
4 files changed
+13 -1

No files matched your search

@@ -51,6 +51,7 @@ import net.minecraft.util.math.MathHelper;
import net.minecraft.world.World;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.common.Tags;
import net.minecraftforge.common.ToolType;
import net.minecraftforge.common.animation.ITimeValue;
@@ -615,7 +616,7 @@ public interface IForgeItem
*/
default boolean isBeaconPayment(ItemStack stack)
{
return this == Items.EMERALD || this == Items.DIAMOND || this == Items.GOLD_INGOT || this == Items.IRON_INGOT;
return Tags.Items.BEACON_PAYMENT.contains(stack.getItem());
}
/**