mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 15:33:18 +00:00
Add item tag 'beacon_payment' for items that can activate a beacon (#6328)
This commit is contained in:
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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user