package info.u_team.u_team_core.item;

import java.util.*;
import java.util.function.Supplier;

import org.apache.commons.lang3.tuple.Pair;

import net.minecraft.entity.EntityType;
import net.minecraft.item.SpawnEggItem;
import net.minecraft.util.LazyValue;

public class USpawnEggItem extends SpawnEggItem {
	
	public static final List<Pair<LazyValue<? extends EntityType<?>>, USpawnEggItem>> LAZY_EGGS = new ArrayList<>();
	
	public USpawnEggItem(Supplier<? extends EntityType<?>> entityType, int primaryColor, int secondaryColor, Properties builder) {
		super(null, primaryColor, secondaryColor, builder);
		EGGS.remove(null);
		LAZY_EGGS.add(Pair.of(new LazyValue<>(entityType), this));
	}
	
}

@@ -200,28 +200,17 @@
 ft.item.
-SpawnEggItem
+*
 ;%0Aimport
@@ -431,16 +431,39 @@
 EggItem(
+Properties properties, 
 Supplier
@@ -540,11 +540,26 @@
 olor
+) %7B%0A%09%09this(null
 , 
-P
+p
 rope
@@ -567,71 +567,302 @@
 ties
- builder) %7B%0A%09%09super(null, primaryColor, secondaryColor, builder
+, entityType, primaryColor, secondaryColor);%0A%09%7D%0A%09%0A%09public USpawnEggItem(ItemGroup group, Properties properties, Supplier%3C? extends EntityType%3C?%3E%3E entityType, int primaryColor, int secondaryColor) %7B%0A%09%09super(null, primaryColor, secondaryColor, group == null ? properties : properties.group(group)
 );%0A%09

Update constructor if u spawn egg item to match the other u items