/** * This function is used when two same-species animals in 'love mode' breed to generate the new * baby animal. */ public EntityWolf spawnBabyAnimal(EntityAgeable par1EntityAgeable) { EntityWolf var2 = new EntityWolf(this.worldObj); String var3 = this.getOwnerName(); if (var3 != null && var3.trim().length() > 0) { var2.setOwner(var3); var2.setTamed(true); } return var2; }