I have a SpawnEggItem and would like to get the EntityType of the Entity it spawns.
I have not tried anything because I don't know how the getType(CompoundNBT p_208076_1_) works.
Here is the code I have
public SpawnEggItem getSpawnEgg(EntityType theEntity)
{
Iterator<SpawnEggItem> eggs = SpawnEggItem.eggs().iterator();
while (eggs.hasNext()) {
SpawnEggItem item = eggs.next();
if(item.getType(idk).equals(theEntity))
{
return item;
}
}
return null;
}
So yeah... any help would be pretty cool, thanks.