1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-30 17:17:55 +00:00

Implement tag functionality

This commit is contained in:
hugeblank
2021-06-02 17:58:04 -07:00
parent ca69d755e6
commit 0318e62524

View File

@@ -16,6 +16,7 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.CompoundTag;
import net.minecraft.nbt.ListTag; import net.minecraft.nbt.ListTag;
import net.minecraft.tag.ServerTagManagerHolder;
import net.minecraft.tag.Tag; import net.minecraft.tag.Tag;
import net.minecraft.text.Text; import net.minecraft.text.Text;
import net.minecraft.util.Identifier; import net.minecraft.util.Identifier;
@@ -86,7 +87,7 @@ public class ItemData
data.put( "unbreakable", true ); data.put( "unbreakable", true );
} }
// data.put("tags", DataHelpers.getTags( ??? )); data.put("tags", DataHelpers.getTags( ServerTagManagerHolder.getTagManager().getItems().getTagsFor(stack.getItem()) )); // chaos
return data; return data;
} }