package info.u_team.u_team_core.item.tool;

import net.minecraftforge.fml.RegistryObject;

public class ToolSet {
	
	private final RegistryObject<UAxeItem> axe;
	private final RegistryObject<UHoeItem> hoe;
	private final RegistryObject<UPickaxeItem> pickaxe;
	private final RegistryObject<UShovelItem> shovel;
	private final RegistryObject<USwordItem> sword;
	
	public ToolSet(RegistryObject<UAxeItem> axe, RegistryObject<UHoeItem> hoe, RegistryObject<UPickaxeItem> pickaxe, RegistryObject<UShovelItem> shovel, RegistryObject<USwordItem> sword) {
		this.axe = axe;
		this.hoe = hoe;
		this.pickaxe = pickaxe;
		this.shovel = shovel;
		this.sword = sword;
	}
	
	public RegistryObject<UAxeItem> getAxe() {
		return axe;
	}
	
	public RegistryObject<UHoeItem> getHoe() {
		return hoe;
	}
	
	public RegistryObject<UPickaxeItem> getPickaxe() {
		return pickaxe;
	}
	
	public RegistryObject<UShovelItem> getShovel() {
		return shovel;
	}
	
	public RegistryObject<USwordItem> getSword() {
		return sword;
	}
}

@@ -37,16 +37,127 @@
 .tool;%0A%0A
+import java.util.Iterator;%0A%0Aimport com.google.common.collect.Iterators;%0A%0Aimport net.minecraft.item.TieredItem;%0A
 import n
@@ -215,16 +215,74 @@
  ToolSet
+ implements Iterable%3CRegistryObject%3C? extends TieredItem%3E%3E
  %7B%0A%09%0A%09pr
@@ -1162,10 +1162,157 @@
 ord;%0A%09%7D%0A
+%09%0A%09@Override%0A%09public Iterator%3CRegistryObject%3C? extends TieredItem%3E%3E iterator() %7B%0A%09%09return Iterators.forArray(axe, hoe, pickaxe, shovel, sword);%0A%09%7D%0A
 %7D%0A

Add iterator to tool set